πŸ“Š Python
Q. What is the output of this code?
Code:
print(len(set('hello')))
  • (A) 5
  • (B) 4
  • (C) 3
  • (D) 2
πŸ’¬ Discuss
βœ… Correct Answer: (B) 4

Explanation: Set removes duplicates, so `h, e, l, o` are unique characters.

Explanation by: Mr. Dubey
Set removes duplicates, so `h, e, l, o` are unique characters.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
56
Total Visits
πŸ“½οΈ
10 mo ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
84%
Success Rate