Q. What is the output of len({1, 2, 2, 3})?

A
4
B
2
C
3
D
Error
Solution:

Sets remove duplicates, so len({1, 2, 2, 3}) is 3.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!