How to Become Python Programmer

igmGuru
3 min readJun 8, 2022

Approach to be followed to master Python:

“Beginning is the end and end is the beginning”. I know what you are thinking about. It is basically a famous quote from a web series named “Dark”. Now how it relates to Python course programming?

If you researched on google, youtube, or any development communities out there, you will find that people explained how you can master programming in let’s say some “x” number of days and like that.

Well, the reality is like the logo of infinity which we can see above. In the programming realm, there is no such thing as mastery. It’s simply a trial and error process. For example. Yesterday I was writing some code where I was trying to print a value of a variable before declaring it inside a function. There I had seen a new error named “UnboundLocalErrorException“.

So the important thing to keep in mind is that programming is a surprising realm. Throughout your entire career, you will be seeing new errors and exceptions. Just remember the quote — “Practise makes a man perfect”.

Now here is the main part. What approach to follow in order to master Python Programming?

Well here it is:

Step-1: Start with a “Hello World” Program

If you happened to learn some programming languages, then I am sure you are aware of what I am talking about. The “Hello World” program is like a tradition in the developer community. If you want to master any programming language, this should be the very first line of code we should be seeking for.

Simple Hello World Program in Python:

print("Hello World")

Step-2: Start learning about variables

Now once we have mastered the “Hello World” program in Python, the next step is to master variables in python. Variables are like containers that are used to store values.

Variables in Python:

my_var = 100

As you can see here, we have created a variable named “my_var” to assign a value 100 to the same.

Step-3: Start learning about Data Types and Data Structures

The next outpost is to learn about data types. Here I have seen that there is a lot of confusion between data types and data structures. The important thing to keep in mind here is that data types represent the type of data. For example. in Python, we have something like int, string, float, etc. Those are called data types as they indicate the type of data we are dealing with.

While data structures are responsible for deciding how to store this data in a computer’s memory.

String data type in Python:

my_str = "ABCD"

As you can see here, we have assigned a value “ABCD” to a variable my_str. This is basically a string data type in Python.

Data Structure in Python:

my_dict={1:100,2:200,3:300}

This is known as a dictionary data structure in Python.

Again this is just the tip of the iceberg. There are lots of data types and data structures in Python. To give a basic idea about data structures in Python, here is the complete list:

1.Lists

2.Dictionary

3.Sets

4.Tuples

5.Frozenset

Step-4: Start learning about conditionals and loops

In any programming language, conditionals and loops are considered one of the backbone.

Python is no exception for that as well. This is one of the most important concepts that we need to master.

IF-ELIF-ELSE conditionals:

if(x < 10):
print("x is less than 10")
elif(x > 10):
print("x is greater than 10")
else:
print("Do nothing")

As you can see in the above example, we have created what is known as the if-elif-else ladder

For loop:

for i in "Python":
print(i)

The above code is basically an example of for loop in python.

--

--

igmGuru

We are an online IT training company delivering more than 150 training courses on all the niche technologies.