Junior — Middle
Which function in a programming language returns the type of the given value?
sobes.tech AI
Answer from AI
In Python, the type() function returns the type of the given value.
Example:
print(type(10)) # <class 'int'>
print(type('hello')) # <class 'str'>
print(type([1, 2, 3])) # <class 'list'>