L2 - Python Data Types
L2 - Python Data Types
Programming
Learning objective
•Understand the concept of data types in Python.
•Identify and explain different data types (numbers(float, int), strings, boolean).
•Create and manipulate variables of various data types.
Bellwork
Bellwork Answer
Line 1
Line 2
Line 3
1 and 3
2
Starter
• What are data types? What do you think a data type is.
Starter- Answer
• Data type defines the kind of data a variable can hold.
• Data types help Python understand how to handle data.
Basic Data Types
Examples
Assessment for learning
Ans - String
Ans - Float
Ans - Integer
Activity 1
Example – Calculate age from
year of birth
• Create a program that asks the user for their birth year
and calculates their age.
print("Year of birth?")
birth_year = input()
age = 2020 - birth_year
print("You are", age, "years old")
Answer
Activity 2 - Choose any two task from the task given below
• https://create.kahoot.it/share/python-i
ntroduction-data-types/6c250baf-813c-
477f-b8ea-1fab4c2a160b