If you're new to Python, welcome! In this post, we’ll go through everything you need to do after installing Python — from opening it for the first time to running your very first Python script.

If you haven’t installed Python yet, don’t worry. You can check the installation video linked in the description, get it installed, and come back here to follow along.


🐍 Opening Python for the First Time

So, you’ve installed Python. Now what? You’re probably staring at your computer screen wondering — how do I actually use this?

That’s exactly what we’re going to do here. We’ll open Python, try some basic math, and even create your first Python program. No complicated steps, no stress — just simple, easy-to-follow instructions.


💬 Understanding the Python Interpreter

Python has something called an interpreter. Think of it as a place where you can type something and Python instantly responds. It’s kind of like chatting with Python — you say something, and it replies right away.

To open it:

  1. Go to your Command Prompt (cmd).

  2. Type:

    cmd

     

  3. Once you’re in, type:

    python
    

     

If you see three angle brackets like this >>>, congratulations! Python is ready to go — you’re officially talking to the interpreter.


➕ Trying Basic Math in Python

Let’s have some fun and try out simple math operations:

5 + 5

Output: 10

10 - 4

Output: 6

8 * 3

Output: 24

9 / 3

Output: 3.0

Python even understands brackets and follows regular math rules — brackets first, then multiplication/division, and finally addition/subtraction.

Try this:

5 + 5 * 5 + 5

Python will first do 5 + 5 = 10, then multiply 10 * 5 = 50, and finally add +5 to give you 55.

Or something like:

5 / 5 + (6 + 6)

Here, it will first calculate 6 + 6 = 12, then 5 / 5 = 1, and finally add them up to give 13.0.


✍️ Writing Your First Python Script

Typing line by line in the interpreter is fine. But what if you want to run multiple lines of code all at once?

That’s where Python scripts come in. A Python script is simply a text file that contains Python code. When you run it, Python executes everything from top to bottom.

Let’s create one!

If you’re using VS Code (like me), open it and type the following:

print("Hello from Python") 
print(5 + 5) 
print(8 * 3) 
print("You are doing great!")

Now, save the file with a .py extension — for example,

first_program.py

This .py tells your computer that it’s a Python file. Just like .txt for text files or .mp3 for music, .py helps your system recognize that this is a Python program.


▶️ Running Your Python File

Once you’ve saved your script, it’s time to run it.

  1. Open the Command Prompt in the same folder where your file is saved.

  2. Type: 

    python first_program.py

     

  3. Press Enter.

And there it is! Your code runs, and you’ll see something like:

Hello from Python 
10 
24 
You are doing great!

That’s your first real Python program — written, saved, and executed successfully! 🎉


🌱 Wrapping Up

In this simple session, you’ve:

  • Opened the Python interpreter

  • Done real math

  • Created and saved your first Python script

  • Run your very first program

If you made it this far, I’m genuinely proud of you. Mistakes are part of learning — so don’t stress if you typed something wrong. That’s how every programmer grows.

Happy coding! 💻