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".