LESSON 01 / 05

Hello, Python!

Why Python is the world’s most loved first language, where it is used, and your first program with print().

🎓Beginnerlevel
⏱️25 minto finish
✏️2activities

📂 First Steps in Python🏷️ Python basics

🎯 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

AreaWhat Python does there
🤖 AI & dataChatGPT-style models, data analysis (pandas, NumPy)
🌐 WebsitesInstagram and Pinterest run on Python (Django)
⚙️ Automationrename 1,000 files, send reports, scrape websites
💼 Interviewsthe most popular language in coding interviews
🎓 Schoolsthe 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.