Test your understanding of Python's core data types and the subtle complexities of type conversion. Each question is designed to probe your grasp of advanced topics like mutability, nesting, type casting behavior, and the nuances between similar data structures.
Which Python data type is immutable and cannot be changed once created, even if it contains other mutable objects?
What is the result of evaluating float(int('17.3')) in Python?
What is the bool value of the string 'False' when converted using bool('False') in Python?
What is the result of set('yyzz') in Python?
Given lst = [str(i) for i in range(2)]; what is the type of lst[0]?
After executing x, y = (3, 'hi'), what are the types of x and y respectively?
Which of the following can NOT be used as a dictionary key in Python?
What happens if you attempt int(2+3j) in Python?
What is the value and type of True + False in Python?
What is the type of the object returned by {'a': [1, 2, 3]}['a']?
What is the result of {i // 2 for i in [1, 2, 3, 4]} in Python?
What does int('1010', 2) evaluate to in Python?
Given a = [1, 2] and b = [1, 2], which of the following is True?
After d = {'x':1, 'y':2}, what is the type of d.keys()?
What is the type of [123][0:1] in Python?