Back to Lesson

Type Inspection

Use type() to inspect variable types.

Instructions

Create variables:

x = 42
,
y = 3.14
,
z = "hello"
. Print the type of each.

main.py
main.py