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,...
“Hello World” in Python

“Hello World” in Python

Programmers usually start writing their first program with “Hello World”. We will also start with “Hello World” here. However, to run your first Python program, you must have Python installed and the environment set up. Otherwise, if there are...