Blog 1: Say Hello to Python — The Most Loved Language

Alisha MalhotraAlisha Malhotra
4 min read

Introduction

Python. A name you’ve probably heard buzzing around in programming forums, AI discussions, data science meetups, and even memes. It’s not just a beginner’s best friend but also a professional’s trusted tool. Its name comes from old BBC television comedy sketch series called Monty Python Flying Circus.

But what exactly is Python? Python is a high-level, interpreted programming language created by Guido van Rossum and first released in 1991. Its design philosophy emphasizes code readability, and it allows developers to express concepts in fewer lines of code.

Some features about Python:

1. Simple and Readable : Python’s syntax is clean, almost like plain English — easy for beginners and powerful for pros.

2. Interpreted Language : Python executes code line-by-line, making debugging and development quicker and easier.

3. Dynamically Typed : You don’t need to declare variable types — Python figures them out on its own.

4. Cross-Platform Compatibility: Python runs smoothly on Windows, macOS, Linux, and even mobile systems.

5. Extensive Library Support: From data science (NumPy, Pandas) to GUI (Tkinter), Python has libraries for almost every domain.

6. Open Source and Free: Python is completely free to download, use, and contribute to — with a massive supportive community.

7. Object-Oriented and Functional: Supports both paradigms, giving you flexibility in how you write your code.

8. Embeddable and Extensible : Python code can be embedded in C/C++ programs, and vice versa, for greater control.

9. Portable: Write your code once and run it anywhere — no need for platform-specific changes.

10. Large Community : Millions of developers contribute to Python’s growth, making resources and help always available.

⚙️ How to Install Python (in Simple Steps)

Let’s get this language running on your machine. Whether you’re a coding newbie or just trying it out of curiosity, the process is quick and simple.

🪟 For Windows Users:

  1. Go to the official Python website.

  2. Click on the latest version and download the .exe file.

  3. Run it and don’t forget to tick the checkbox that says “Add Python to PATH”.

  4. Click Install Now. Done! 🎉

🍏 For Mac:

Python 2 is pre-installed on most Macs, but install Python 3 by:

  1. Installing Homebrew (package manager):

     /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
    
  2. Then run:

     brew install python
    

🐧 For Linux:

Usually comes pre-installed. But to upgrade/install:

sudo apt update  
sudo apt install python3

Check installation:

python --version  
# or  
python3 --version

How Does Python Work?

When we write a Python program, how does it actually run?

Here’s the step-by-step working process of Python:

  1. You write your code (e.g., print("Hello World")) in a .py file.

  2. Python does not use a traditional compiler like C/C++.

  3. Instead, it uses an interpreter (line-by-line execution).

  4. The code first gets compiled into Bytecode (a lower-level code).

  5. Then, the Python Virtual Machine (PVM) executes that Bytecode.

❓ Is Python Interpreted or Compiled?

This confused me at first too!

  • Python is both:

    • It compiles the code to Bytecode internally

    • Then interprets it using the PVM So, we never manually compile Python. It’s all handled automatically behind the scenes.


🔁 Flowchart: How Python Executes Code


🧾 Summary of What You Learned

  • Python was created by Guido van Rossum in 1991.

  • It’s known for being beginner-friendly, powerful, and versatile.

  • Installing Python is simple and fast on any OS.

  • Python first compiles to bytecode and then is interpreted by the PVM.

  • It’s often described as an interpreted language, though it has a compilation step internally.


My Experience with Python

Back in my BCA Semester 3, I learned Python after C and C++, and it instantly felt easier and more intuitive. But… I did hit a small roadblock.

I kept wondering:

“Is Python compiled or interpreted?” “What is PVM and where is it hiding?”

These questions made me second-guess the fundamentals — until I dived deeper and understood that Python is smart enough to handle both compilation and interpretation without bothering us. That’s when things clicked.


Let’s Try a Simple Python Program

Here’s a tiny Python program to add two numbers:

# Program to add two numbers
num1 = 10
num2 = 5
sum = num1 + num2
print("The sum is:", sum)

Try this out on your system. Once you’ve installed Python, open IDLE or any code editor, paste the code, and run it. You’ll see:

The sum is: 15

We’ll explore user input and custom values in the next blog, so stay tuned!


Final Note

Python is simple yet deep. This blog is just your first step into the world of powerful, clean, and readable code. In the next blog, we’ll explore variables, data types, and taking input from users to make programs more interactive!

Until then, install Python, try the addition program, and enjoy exploring!

0
Subscribe to my newsletter

Read articles from Alisha Malhotra directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Alisha Malhotra
Alisha Malhotra