Level 2: Variables and Numbers
Learn to store and work with numbers using variables.
📚Concept:
A variable is like a box with a label. You can put things inside and use them later!
💡Example:
age = 25 # Put number 25 in a box labeled 'age'
print(age) # Shows: 25
name = 'Alice' # Put text 'Alice' in a box labeled 'name'
print(name) # Shows: Alice
Think: box_name = what_goes_inside
Task:
Create a variable called 'age' with value 25, then print it.
Python Code Editor
Ctrl+Enter to run • Ctrl+R to reset
Level 2 of 15