Examveda

What will be the output of the following Python code?
nums = set([1,1,2,3,3,3,4,4])
print(len(nums))

A. 7

B. Error, invalid syntax for formation of set

C. 4

D. 8

Answer: Option C


This Question Belongs to Python Program >> Sets In Python

Join The Discussion

Related Questions on Sets in Python