Q. What will the below Python code do?

Code:
set1={"a",3,"b",3}

set1.remove(3)
  • (A) It removes element with index position 3 from set1
  • (B) It removes element 3 from set1
  • (C) It removes only the first occurance of 3 from set1
  • (D) No such function exists for set
πŸ’¬ Discuss
βœ… Correct Answer: (B) It removes element 3 from set1

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
169
Total Visits
πŸ“½οΈ
3 y ago
Published
πŸŽ–οΈ
Ram Sharma
Publisher
πŸ“ˆ
91%
Success Rate