Variables · Python example
Create strings, integers, floats, and booleans, then inspect each type.
Every value in Python has a type. This example creates one value of each common built-in type and prints its name.
name = "Ada"
age = 36
height = 1.68
is_engineer = True
print(name, type(name).__name__)
print(age, type(age).__name__)
print(height, type(height).__name__)
print(is_engineer, type(is_engineer).__name__)