Loading...
Identify the types of different Python values.
Python has several built-in types:
Write a function get_types(values) that takes a list of values and returns a list of their type names as strings.
Return a list of type names (e.g., ["int", "str", "float"]).
[42, 'hello', 3.14, True, [1,2], {'a': 1}]['int', 'str', 'float', 'bool', 'list', 'dict']
type(42).name returns 'int', type('hello').name returns 'str', etc.