💡 For the best experience, set your browser zoom level to 75%

    ‎75%‎ للحصول على أفضل تجربة، اضبط مستوى تكبير المتصفح على 💡

Skip to main content

Lesson 2 - Assignment

Objective:

Practice creating and using variables of different data types in Python.

Tasks:

1.    Create and Print Variables:

·       Create 4 variables:

o   name as a string (your name)

o   age as an integer (your age)

o   height as a float (your height in meters)

o   is_student as a boolean

2.    Print Each Variable and Its Type:

·       Use the type() function to print the data type of each variable.