0% found this document useful (0 votes)
3 views1 page

Intro to Python Variables and Data Types

Uploaded by

mavin
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views1 page

Intro to Python Variables and Data Types

Uploaded by

mavin
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

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

You might also like