Lesson Note: Introduction to Variables, Strings,
and Integers
1. What is a Variable?
A variable is like a box where we can store information. In Python, we use variables to keep data
and use it later.
name = "Daniel"
age = 10
print(name)
print(age)
2. Strings
A string is a collection of letters, words, or symbols written inside quotation marks (" " or ' ').
greeting = "Hello, World!"
print(greeting)
3. Integers
An integer is a whole number (without decimal points).
score = 95
year = 2025
print(score)
print(year)
4. Combining Strings and Integers
You can use variables together inside print().
name = "Daniel"
age = 10
print("My name is", name)
print("I am", age, "years old")
5. Class Activity
1. Create a variable to store your name.
2. Create a variable to store your age.
3. Print a sentence: "My name is ___ and I am ___ years old."