Python - Variables and Dynamic Typing
What is the output of this code?
value = [1, 2, 3] print(type(value) == list)
value = [1, 2, 3] print(type(value) == list)
value is a list of integers, so its type is list.type(value) == list compares the type of value to list, which is True.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions