Vidyalelo
Python · Q40

Python Sets MCQs: Exam

Programming · Python · question 40

Q40

Which of the following lines of code will result in an error?

A.
s={abs}
B.
s={4, 'abc', (1,2)}
C.
s={2, 2.2, 3, 'xyz'}
D.
s={exa}
Answer

Answer: Option D

Solution

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