Welcome. If you are here, you are thinking about learning Python — and that is a good decision. But before we touch any code, let us build the right mental model. Most tutorials start with syntax. We are not going to do that. We are going to start with understanding.
Python is a high-level, interpreted programming language. What does that mean in plain words? It means you write instructions in something that looks almost like English, and a program called the Python interpreter reads those instructions and executes them on your computer. You do not need to deal with memory addresses, CPU registers, or low-level system calls. Python handles all of that for you.
Python was created by Guido van Rossum and first released in 1991. His goal was simple: make a language that is easy for humans to read and write, but powerful enough for real work. After over 30 years, that goal has been achieved better than almost anyone expected.
Python did not become popular because of marketing. It became popular because it solves real problems quickly. Here is why millions of people use it today:
This is important to understand before you start. Python is not a toy language. It is used across many serious fields:
When you run a Python file, here is what happens step by step: Your code is first compiled into something called bytecode — a lower-level representation that humans do not need to read. Then the Python Virtual Machine (CPython by default) reads and executes that bytecode line by line. This is why Python is called an interpreted language — it does not compile directly to machine code like C or Java does.
This process makes Python slightly slower than compiled languages in raw speed. But in most real-world applications, that difference does not matter. Developer speed — how fast you can write and test code — matters far more. And Python wins there.
Let us get Python installed on your system. The steps are simple:
On Linux (Ubuntu/Debian), Python is often pre-installed. You can also run:
sudo apt update
sudo apt install python3 python3-pip
After installation, open your terminal or command prompt and type this command:
python --version
# or on Linux/Mac
python3 --version
You should see something like Python 3.11.4. If you see that, Python is installed correctly and you are ready to code.
Every programmer writes this first. It is a tradition. Let us do it:
print("Hello, Python!")
print("My name is Suraj. I am learning Python.")
Run this and you will see both lines printed on screen. The print() function is one of Python's built-in functions. It takes whatever you give it inside the parentheses and displays it. Simple, but important — this is the foundation of how Python programs communicate output to the user.
You can write Python in any text editor, but using a proper editor makes life much easier. Here are the best options:
Before we go further, one important thing to say: do not memorize syntax. That is not programming. Programming is learning to think logically — to break problems into steps and express those steps in code. Python's syntax is so readable that once you understand the logic, the syntax comes naturally.
Focus on understanding why something works, not just how to write it. That difference is what separates people who learn Python in 3 months from those who are still copying code after 3 years.
In Part 2, we will learn about variables and data types — the building blocks of every Python program.