๐ ๏ธ Section project: a profile card
Section 1: The startLesson 1.4 ยท โฑ 8 min
๐ฏ Project goal
A program that prints a card about you on several lines, with a frame of stars.
print("*********************")
print("* Name: Sara *")
print("* Age: 11 *")
print("* I love: robots *")
print("*********************")
๐ฅ๏ธ The output in Robo Python:
๐ Open the code in Robo Python โ********************* * Name: Sara * * Age: 11 * * I love: robots * *********************

๐ Another example: a card with a frame
A profile card with a frame of dashes.
print("=" * 24)
print(" Name: Omar")
print(" Age: 11")
print(" Hobby: robots")
print("=" * 24)
๐ฅ๏ธ The output in Robo Python:
๐ Open the code in Robo Python โ======================== Name: Omar Age: 11 Hobby: robots ========================
โ๏ธ Practise
Challenge: make your own card, and add a line about your dream.
โ๏ธ Practise here in the lessonโ Close the labor open the lab in a new page โ
๐ฏ Challenge yourself
Easy
A card with three lines: your name, your city and your favourite colour.
๐ Show the solution๐ Hide the solution
print("Name: Sara")
print("City: Cairo")
print("Color: blue")
๐ฅ๏ธ The output in Robo Python:
๐ Open the code in Robo Python โName: Sara City: Cairo Color: blue
Result: three lines.
Medium
Add a line that works out your age in 5 years.
๐ Show the solution๐ Hide the solution
print("Name: Sara")
print("Age in 5 years:", 9 + 5)
๐ฅ๏ธ The output in Robo Python:
๐ Open the code in Robo Python โName: Sara Age in 5 years: 14
Result: Age in 5 years: 14
Hard
A card inside a frame of stars on all four sides.
๐ Show the solution๐ Hide the solution
print("*" * 20)
print("* Name: Sara *")
print("* City: Cairo *")
print("*" * 20)
๐ฅ๏ธ The output in Robo Python:
๐ Open the code in Robo Python โ******************** * Name: Sara * * City: Cairo * ********************
Result: a frame of stars.

