(Variables, Print, Comments — Day 2️⃣)
Let’s start with a promise:
Follow me and subscribe to my emails — I’ll be sharing Python learning blogs every day for the next 30 days. You can follow: 👉 https://www.skakarh.com/series/python-zero-to-hero
If Python syntax scares you, today it stops.
Not tomorrow.
Not after 50 tutorials.
Today.
Because Python syntax is not “programming language stuff.”
It’s basic instructions written politely.
Let’s break it down like you’re 5 years old — but smart.
First: What Is Syntax?
Syntax is just:
The rules of how you talk to the computer
Just like:
- Grammar in English
- Rules in a game
Python’s rules are… shockingly friendly.
print() — “Say This Out Loud”
Think of print() as the computer speaking.
print("Hello")👉 Computer says:
Hello
That’s it.
Want to say something else?
print("I am learning Python")No magic.
No setup.
Just say it.
Why are there quotes " "?
Because the computer needs to know:
“This is text, not math.”
print(5) # number
print("5") # textSame symbol.
Different meaning.
Variables — “Boxes With Names”
A variable is just a box.
You put something inside it.
You give the box a name.
age = 5
Now imagine a box labeled age with number 5 inside.
Later, you can ask:
print(age)
Computer says:
5
Let’s try something fun:
name = "Ali"
print(name)
Now the computer remembers your name.
🧠 Important rule:
Python reads top to bottom.
The box must exist before you use it.
Variables Can Change (They’re Not Permanent)
score = 10
print(score)
score = 20
print(score)
Output:
10
20
Same box.
New value.
That’s why it’s called a variable.
💬 3️⃣ Comments — “Talking to Humans, Not Computers”
Sometimes you want to explain your code.
But you don’t want Python to read it.
That’s a comment.
# This is a comment
print("Python is easy")
Python ignores comments completely.
Why comments matter (later)?
Because:
- You’ll forget what your code does
- Other people will read your code
- Future you will thank past you
🚫 Common Beginner Fears (Let’s Kill Them)
❌ “What if I break something?”
You won’t. Python errors are just messages, not disasters.
❌ “What if I forget syntax?”
Everyone forgets. Even seniors Google it.
❌ “Why no semicolons?”
Because Python respects your time.
Tiny Practice (Do This Now)
Type this yourself 👇
name = "You"
age = 10
print("My name is")
print(name)
print("My age is")
print(age)
Run it.
If it works — congrats 🎉
You just wrote a real program.
The Secret You’re Not Told
Python syntax feels easy on purpose.
So your brain can focus on:
- Thinking
- Logic
- Problem solving
Not punctuation.
💬 Quick question for you:
Which one felt easiest today — print, variables, or comments?
Comment 👏, and see you on Day 3️⃣ 🚀🐍
This article is part of QA Pulse by SK — your weekly signal for QA, Test Automation and AI in Software Engineering. Subscribe free.