Integer example
Input
check_type(5)
Output
int
The value 5 is an integer, so the function returns 'int'.
Full lesson preview
Return the runtime type name of a value as a string.
Problem statement
Task
Examples
Input
check_type(5)
Output
int
The value 5 is an integer, so the function returns 'int'.
Input format
Output format
Constraints
Samples
Input
check_type([1, 2, 3])
Output
list
A Python list has the type name 'list'.