Spot the Type
Python
20 pts
Spot the Type
Five variables are given. Without changing them, print the name of the type of each one, one per line, using type(x).__name__.
Expected output:
str int float bool str
Notice the last one: why is "3.5" a str?
Checklist
- Keep the five variables exactly as they are.
- Print the type name of
a,b,c,dande, one per line.
🔑 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.
