The output of the following code is: class<’set’>. [code]type({})[/code]

Thảo Justin

New member
The output of the following code is: class<’set’>.
Code:
type({})
A. True
B. False
 
Answer: b
Explanation: The output of the line of code shown above is: class<’dict’>. This is because {} represents an empty dictionary, whereas set() initializes an empty set. Hence the statement is false.
 

Tìm kiếm

Back
Top