Image for post
Image for post

In this article, I would like to share my knowledge about the dictionary and Sets in Python. In the last article, I discussed the common data structures that are widely used in the python community. Here is a continuity of the last article.

Dictionaries

dictionaries are a data structure which is used to store data in the mode of a key: value pair. Each key has its own respective value pair. Since the dictionaries are similar to a map. There are various methods that can be implemented with dictionaries.

Starting with the implementation, to create a dictionary we have to start…


Happy New Year 2021!!!. It has been a great journey from the prevailing global pandemic. Hope you all are safe and may this year be more productive than the previous one. In this article, I would like to share my knowledge on React which I started to learn when I was at home in the quarantine days.

What is React?

Image for post
Image for post

React is a JavaScript library that you can use to create user interfaces. It was created at Facebook and open-sourced in March 2013. Today React became more popular such that companies like Twitter, Netflix, and Microsoft and many more.

As a student, it…


Image for post
Image for post

In this let’s see the data structures lists, Ranges, and tuples in python. below mentioned methods and style are some of the common practices that followed within the python developers in the present time.

Lists

A list is a collection that is ordered and changeable. In Python, lists are written with square brackets.

We can access a list item by mentioning its index in the list and also by calling the list backward (-1, -2)we can print the list items in python.

Print the lists within the ranges is also possible in python. [beginning index: end index]

Print the list from…


In this article, I will be discussing flow control in the python language. as an overview, I will be discussing IF, ELSE condition ELIF conditions, and loops (for, while loops).

If, Else and Elif conditions

If, Else Condition

Generally in if conditions we define a condition under certain terms to happen if the certain condition is not met the else part comes to action where the else part occurs.

Image for post
Image for post
Basic IF Else condition in python.

In this article, I have discussed variables, data types, operators, and comments. let's dive deeper into them!

Variables

What is actually a variable?, A variable is actually a container to store any data. In Python to variables exist. A variable is created the moment you assign a value to it.

Image for post
Image for post

Data Types

For the variable we can store different types of data, there are data types categorized in python.

String- Textual information. Strings are a sequence of letters. A string value is enclosed in quotation marks: single, double, or triple quotes.

Integer, Float- An integer data type represents some range of mathematical integers


Image for post
Image for post

What is Python?

Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. Its high-level built-in data structures, combined with dynamic typing and dynamic binding, make it very attractive for Rapid Application Development, as well as for use as a scripting or glue language to connect existing components together. Python’s simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse. The Python interpreter and the extensive standard library are available in source or binary form without charge for all major platforms and can be freely…


This time we had decided to go for a hike and make the weekend a bit sportive and adventurous. So we choose to visit Kanneliya as the tripping destination!. On a great Friday morning, we packed our hiking kits and other luggage and started our ride from Colombo at 7 am. After a 2 hour ride, we exited the Pinnaduwa interchange and drive to Dediyagala Monastry (which is situated at the foot of the hiking spot), which was about 2–3km. We finally arrived at the hiking spot, but before starting the hike we decided to have our breakfast. …


This time we planned the trip to go for the architectural marvel ‘’Heritance” in Kandalama, Dambulla for the weekend vacation. After having a 5 hr drive from Colombo to Dambulla we came to Kandalama village which is located around 5km from Dambulla town.

After being warmly welcomed by the hotel crew we were shown our room for unpacking. I must admit that the hotel room looked more amazing than it looked on the internet. The infrastructure and the landscape looked marvelous. We then planned for a swim after the long drive. Then we went to have dinner at the Grant…


It was a great day, where me and my friends were standing on platform number 2 in Fort railway station for the Podi menike to arrive at 5.55 a.m. The train arrived and started it’s 294 Km with a starting horn. While crawling the mountains the train introduced to some of the eye-catching scenarios and vintage styled railway stations which a person could never imagine and somehow I managed to take a few shots to publish it here!!.

Image for post
Image for post
Some Scenic Images on the way to Diyathalwa!

The train came to Diyathalawa railway station around 3.30 p.m. We were given a decent escort from the station to Diyathalawa Holiday…

Purushoth Anandaraja

NOT TODAY!

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store