Vidyalelo
Python · Q86

Python Sets MCQs: Exam

Programming · Python · question 86

Q86

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
Answer
D.
8

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board