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...
Python Environment Setup

Python Environment Setup

Command Line Interface (CLI) To use the command line interface, we first need to install Python’s core package. This varies for different operating systems. Windows First, download the latest version 3 of Python from this link. Once downloaded, double-click on...