Python
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
Task 1 Task 2 Task 3
Write a python program that input Write a python program to Write a python program to calculate the BMI
the length and width of a calculate and display the simple based on users weight and height.
rectangle, calculate and display its interest. Your program must take Formula for BMI
area. Formula to Calculate area principal amount, time and rate BMI= weight / (height ** 2)
Area = Length * Breadth as an input. Formula to calculate
(Simple Interest = Principal
Amount*Time*Rate)
Extension Task – Challenge
Complete the first question Perse Coding Challenge
PCTC 2023-24 R0 Review Mode - .
Level 1 - Answer
Level 2 Answer
Level 3 - Answer
Plenary -
Kahoot
• https://create.kahoot.it/share/python-i
ntroduction-data-types/6c250baf-813c-
477f-b8ea-1fab4c2a160b