🎯 By the end of this lesson you can…
- Explain what Python is used for
- Run a program with print()
- Write comments
A language that reads like English
🐍 Python
hello.py
👆 Tap a line to explain it
1print("Hello, world! 🐍")2print(7 * 6)3# This line is a comment. Python ignores it.4print("Python", "is", "fun")
Press ▶ Run. The first run downloads Python itself into your browser (a few seconds); after that it is instant.
Where Python lives
| Area | What Python does there |
|---|---|
| 🤖 AI & data | ChatGPT-style models, data analysis (pandas, NumPy) |
| 🌐 Websites | Instagram and Pinterest run on Python (Django) |
| ⚙️ Automation | rename 1,000 files, send reports, scrape websites |
| 💼 Interviews | the most popular language in coding interviews |
| 🎓 Schools | the first language taught in most universities |
Indentation matters
Python uses spaces at the start of lines to group code (other languages use { }). For now, just start every line at the left edge. You’ll see indentation in action with if and loops.
🐍 Python
oops.py
👆 Tap a line to explain it
1print("one")2 print("two")
🔮 What will this display?
What does this print?
1print("2 + 3")2print(2 + 3)
🛠️ First program
Print two lines: I am learning Python and then the result of 365 * 24.
📌 Key takeaways
- Python is used for automation, websites, data science, AI and coding interviews.
print(...)shows output; each print starts a new line.#starts a comment — a note for humans.
Finished reading & practising?
Saved in this browser. Create a free account to keep it forever.