What Type Is It?

Lab Python Beginner 10 points

Print the type name of each value on its own line: 42, 3.14, "hi", True, None. Use type(value).__name__.

Input

None.

Output

int
float
str
bool
NoneType

Example

Output

int
float
str
bool
NoneType
Sample output available
Editor
Python

Hints

type(x) returns the type; .__name__ gives its name as text.

You can write five print lines, or loop over the values.

Solution explanation

Python's core types: int, float, str, bool and the special value None.

Show solution
for value in (42, 3.14, "hi", True, None):
    print(type(value).__name__)
Output
Answer
HOME LEARN COMMUNITY DASHBOARD