Stage 1 First Steps
Lesson 1 of 12 10 XP on completion

First Steps: What Even Is Python?

You're here. That already makes you better than 99% of people who said "I'll learn Python someday." Let's not overthink this. Python is just a way to talk to your computer. Your computer is a very powerful machine that understands instructions — but only if you give them in a language it knows. Python is one of those languages. And it's one of the easiest ones to learn.

Sarpanch waving
Arre bhai! Welcome welcome! Don't be scared. I'm Sarpanch — your Python teacher, best friend, and occasional drama queen. We're going to have fun. Promise. 🐍

What Is Python?

Python is a programming languageA programming language is a set of rules for writing instructions that a computer can understand and execute. Like grammar, but for computers. that lets you tell a computer what to do — step by step.

Unlike human languages (which are fuzzy and context-dependent), Python is precise. If you write print("Hello"), the computer does exactly that. No ambiguity. No interpretation. Just: "Print the word Hello. Got it. Done."

Python was created in 1991 by a Dutch programmer named Guido van RossumGuido van Rossum created Python and was known as its "Benevolent Dictator For Life" (BDFL). He stepped down in 2018 but Python lives on.. He wanted a language that was clean, readable, and easy to learn. He succeeded. Also he named it after Monty Python's Flying Circus, not the snake. But Sarpanch the snake is here now. And he's staying.

Python is used by NASA, Netflix, Instagram, Spotify, Google, Dropbox — basically every company that does anything cool with data, automation, AI, or web development. Your future employer probably uses it. So let's learn it.

🐍 Fun fact: Python is the #1 most popular programming language in the world according to multiple indices. It's used in data science, AI, web development, automation, research, and film VFX. One language. A thousand careers.

Imagine your computer is an incredibly fast but incredibly literal robot chef. You can ask it to cook anything — but you need to give it the exact recipe, step by step. "Put water in the pot" — okay. "Boil" — okay. "Add pasta" — okay.

If you just say "make pasta," it freezes. It needs instructions. That's what a Python program is — a recipe. You write the steps, and the chef (your computer) executes them perfectly, every single time.

The Most Famous Line of Code in History

Every programmer, across every language, writes this as their very first line. It's tradition. It's a rite of passage. It's also extremely anticlimactic. Here it is:

hello.py
print("Hello, World!")
1 print("Hello, World!") print() is a built-in Python function that displays text. Whatever you put inside the brackets appears on screen.

When you run this, the computer will display: Hello, World! That's it. That's the whole program. One line. Welcome to programming.

But we at PyLearn don't do boring examples. So here's the Sarpanch-approved version:

sarpanch_intro.py
print("Hello! I am Sarpanch.")
print("I am not a robot. Probably.")
print("I am definitely a snake.")
print("Let's learn Python together! 🐍")
1 print("Hello! I am Sarpanch.") Prints the first line of text on screen.
2 print("I am not a robot. Probably.") Each print() runs on a new line. Python reads top-to-bottom.
3–4 print("...")... More print statements. Every line runs in order. That's it!
🔑 Key Terms:
  • • Function — A named action that does something. print() is a function.
  • • String — Text in quotes. "Hello" is a string. Quotes tell Python it's text, not code.
  • • Syntax — The grammar rules of Python. Break them → Python refuses to run.
  • • Statement — One instruction for Python. Each line is usually one statement.

How Python Runs Your Code

You Write print("Hello") Python code (.py file) Python runs it 🐍 Python Interpreter Reads & translates your code to machine executes Output Hello appears on screen
Your Python code → Python Interpreter → Output on screen. Simple as that.

The "Hello World" Experience

Panel 1
Sarpanch nervous
"Okay. I'm going to write my first Python program. This is it. The moment."
Panel 2
Sarpanch coding
pritn("Hello World")
(Typo. Classic.)
Panel 3
Sarpanch crying
"NameError: name 'pritn' is not defined."
Lesson learned: Python does not autocorrect.

Live Python Playground

Edit the code below and click Run. Real Python. In your browser. No installation needed. Sarpanch will react to your results.

💡 Challenges:
  1. Change the message to print your own name.
  2. Add a second print() on the next line.
  3. Try printing an emoji. (Yes, Python handles emojis! 🎉)

What Did We Just Learn? 🐍

  • Python is a programming language — a way to give your computer step-by-step instructions.
  • Python reads like English, which makes it the easiest first language to learn.
  • print() is your first Python function — it displays text on the screen.
  • Text in quotes (like "Hello") is called a string.
  • Python runs code top-to-bottom, one line at a time.
  • Typos matter — Python doesn't autocorrect. Spell everything right.
Sarpanch happy
Stage 1 done! You ran your first Python program. That's actually huge. Most people never even get here. Stage 2 is where the real fun begins — Variables! 🐍