Q. What does `set.add()` do?

  • (A) Adds an element at the start
  • (B) Adds an element to a set
  • (C) Appends to a list
  • (D) Inserts in a dictionary
πŸ’¬ Discuss
βœ… Correct Answer: (B) Adds an element to a set
Explanation: `add()` is used to add elements to a set.
Explanation by: Mr. Dubey
`add()` is used to add elements to a set.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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