Python Set Tricky question | Learn python | python basics | coding #python #pythonquiz
Description: ✅ Correct Answer: C) 3
**Explanation:** In Python, a set stores only unique values. The duplicate value `2` is automatically removed, so `{1, 2, 2, 3}` contains only `{1, 2, 3}`.
The `len()` function counts the number of elements in the set. Therefore, the output is 3.
🔥 Test your Python basics and improve your coding logic with this Python quiz from Code With Patel!
#python #pythonquiz #pythonbasics #pythonforbeginners #pythonprogramming #pythontricks #pythonset #codingquiz #learnpython #codewithpatel Close description
**Explanation:** In Python, a set stores only unique values. The duplicate value `2` is automatically removed, so `{1, 2, 2, 3}` contains only `{1, 2, 3}`.
The `len()` function counts the number of elements in the set. Therefore, the output is 3.
🔥 Test your Python basics and improve your coding logic with this Python quiz from Code With Patel!
#python #pythonquiz #pythonbasics #pythonforbeginners #pythonprogramming #pythontricks #pythonset #codingquiz #learnpython #codewithpatel Close description




