Source Code:
(back to article)
x = 5 print(type(x)) # Output: <class 'int'> y = 'hello' print(type(y)) # Output: <class 'str'> z = [1, 2, 3] print(type(z)) # Output: <class 'list'>
Result:
Report an issue