Python data types

Python data types

In previous post we have seen about variables and operators in Python. If you notice, you may notice that the variables are different here, even though we have been dealing with numeric values so far. But in order to work normally, we have to work with different types...
Python Operators

Python Operators

In the previous post, we learned about variables in Python. An operator is something that operates on a variable or a constant, i.e., performs an operation. We have been familiar with operators for a long time. For example, let’s consider a mathematical...
Variables in Python

Variables in Python

Like other programming languages, the concept of variables in Python is the same. A variable is a holder or container. Let’s consider an example from our everyday life. We drink water every day; how do we do it? Initially, we pour water from a large container...
Comments and Documentation in Python

Comments and Documentation in Python

Comments and documentation help make any program comprehensible to everyone. Suppose we write a huge program or develop a software. If someone looks at that code, it’s natural for them not to understand it. Therefore, the best practice is to use enough comments...
How Python Works

How Python Works

In the previous part, we saw a very simple Hello World program. We saw that whatever is written inside the print() function is shown as the output. But how does it work? We will discuss this in detail in this part. From running a program to displaying the output,...