Variables
A variable is a name that stores a value:
name = "Anna"
year = 2026
print(name, year)
To insert a variable into a string, use f-strings:
print(f"Hello, {name}!")
Challenge
- Create a variable
agewith the value25. - Print
I am 25 years oldusing an f-string and theagevariable.