Python Learning Series · @onlysamarrr · Day 1 / 30
Day 1 teaches your first Python program: print() shows text on screen, a variable stores a value under a name, and a line starting with # is a comment that Python ignores.
Phase: Beginner · Reels: 1/450 – 5/450
Day 1 teaches your first Python program: print() shows text on screen, a variable stores a value under a name, and a line starting with # is a comment that Python ignores.
name = "Arhan"
lang = "Python"
# This is a comment, Python ignores it
print("Hello World")
print("My name is", name)
print(name, "is learning", lang)
Hello World My name is Arhan Arhan is learning Python
Every program you will ever write starts here: showing output, storing data in variables, and leaving comments for other developers.
Select (tick) an option, then tap Check answer to see instantly whether your answer is right or wrong, with an explanation. You can change your answer and check again.
Q1. What does print("Hello") display?
Q2. What is x after x = 5?
Q3. Which symbol starts a comment in Python?
| 1/450 | Concept | print() se pehli line |
| 2/450 | Live demo | Strings aur quotes |
| 3/450 | Common mistake | Variables |
| 4/450 | Quiz | Comments (#) |
| 5/450 | Interview / real life | Quiz: naam + language print |