Create Each Data Type
Python
15 pts
Create Each Data Type
Create these four variables:
name— a string with your nameage— an integerheight— a float, for example1.75is_student— a boolean
Then print the type of height. The output must be:
<class 'float'>
Checklist
- Create
nameas a string. - Create
ageas a whole number (int). - Create
heightas a decimal number (float). - Create
is_studentas a boolean. - Print the type of
height.
🔑 Solution
If you view the solution before passing, you earn half points for this exercise. You still need to type it and press Check to finish.
How it works, step by step
Point at a step to highlight its lines. Type the solution yourself and press Check answer to finish.
