انتقل للمحتوى
Robo EgyptRobo Egypt
☰ Course contents
Robo Python: home
0. Lab tour1
1. The start5
2. Variables and input5
3. Conditions5
4. Loops5
5. Lists4
6. Functions4
7. Drawing with the turtle3
8. The project: the guess-the-number game3
9. Strings in depth1
10. Dictionaries (dict)3
11. Randomness and errors3
12. Classes and objects (class)2
13. Pro drawing and charts3
14. The final project: the quiz game2

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.

🐍 Python calculates
print("I am learning Python")
print(7 * 8)
print("Done!")
🖥️ The output in Robo Python:
I am learning Python
56
Done!
🐍 Open the code in Robo Python ↗
✍️ Practise
Open Robo Python and run the first example.
✍️ Practise here in the lessonor open the lab in a new page ↗

🎯 Challenge yourself

Easy

Print your name.

👀 Show the solution
🐍 Solution
print("Mona")
🖥️ The output in Robo Python:
Mona
🐍 Open the code in Robo Python ↗

Result: Mona

Medium

Print the result of 125 + 375.

👀 Show the solution
🐍 Solution
print(125 + 375)
🖥️ The output in Robo Python:
500
🐍 Open the code in Robo Python ↗

Result: 500

Hard

Print three lines: your name, then your age, then your age × 12 (your age in months).

👀 Show the solution
🐍 Solution
print("Mona")
print(10)
print(10 * 12)
🖥️ The output in Robo Python:
Mona
10
120
🐍 Open the code in Robo Python ↗

Result: Mona, then 10, then 120

Finished the lesson? Mark it so your progress counts.