Q. What will be the output of following Python code?

Code:
set1={0,0,9}

print(set1)
  • (A) {0,0,9}
  • (B) {0,9}
  • (C) {9}
  • (D) It will throw an error as there are two 0 while creating the set
πŸ’¬ Discuss
βœ… Correct Answer: (B) {0,9}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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