Vidyalelo
Python · Q4

Python Sets MCQs: Exam

Programming · Python · question 4

Q4

What does the len() function do when applied to a set or tuple?

A.
Returns the number of elements in the set or tuple
Answer
B.
Converts the set or tuple to lowercase
C.
Converts the set or tuple to uppercase
D.
Removes the last element

Answer: Option A

Solution

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