</>
Topic 1 of 10
Theory

Output and variables

A Python program is a list of commands executed from top to bottom. print() shows text on the screen:

print("Hi!")
print("I am", 12, "years old")   # several values — separated by spaces

A variable is a name for a value. The = sign stores a value in a variable:

name = "Anna"
age = 12
age = age + 1      # now 13
print(name, age)

Names are written in lowercase, words joined with _: user_name, total_price.

Many challenges come with starter code. Write your solution where the comment is — then press "Check".

Business card

Easy+10 XP

Print two lines: My name is Python and I am 35 years old.

main.pyLoading Python…
Output
Press "Check" to run the tests