What is Python?
Section 1: The startLesson 1.1 · ⏱ 5 min
Python is a programming language where we write commands in words. Engineers use it in artificial intelligence, robots, websites and games. It is one of the easiest languages to start with.
- The editor: on the right, where you write the code.
- Output: on the left, where what the program writes appears, and Drawing for the turtle.
- ▶ Run (or Ctrl + Enter) runs the program.
📌 Note
Code is written in English, and the words between quotation marks can be in any language.
📌 Another example: Python calculates
Python runs the lines from top to bottom, and it calculates too.
print("I am learning Python")
print(7 * 8)
print("Done!")
🖥️ The output in Robo Python:
🐍 Open the code in Robo Python ↗I am learning Python 56 Done!
✍️ Practise
Open Robo Python and run the first example.
✍️ Practise here in the lesson✖ Close the labor open the lab in a new page ↗
🎯 Challenge yourself
Easy
Print your name.
👀 Show the solution🙈 Hide the solution
print("Mona")
🖥️ The output in Robo Python:
🐍 Open the code in Robo Python ↗Mona
Result: Mona
Medium
Print the result of 125 + 375.
👀 Show the solution🙈 Hide the solution
print(125 + 375)
🖥️ The output in Robo Python:
🐍 Open the code in Robo Python ↗500
Result: 500
Hard
Print three lines: your name, then your age, then your age × 12 (your age in months).
👀 Show the solution🙈 Hide the solution
print("Mona")
print(10)
print(10 * 12)
🖥️ The output in Robo Python:
🐍 Open the code in Robo Python ↗Mona 10 120
Result: Mona, then 10, then 120

