πŸ“Š Python
Q. What will be the output of the following Python program?
Code:
z=set('abc')
z.add('san')
z.update(set(['p', 'q']))
z
  • (A) {‘a’, ‘c’, ‘c’, ‘p’, ‘q’, ‘s’, ‘a’, ‘n’}
  • (B) {‘abc’, ‘p’, ‘q’, ‘san’}
  • (C) {‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}
  • (D) {‘a’, ‘b’, ‘c’, [‘p’, ‘q’], ‘san}
πŸ’¬ Discuss
βœ… Correct Answer: (C) {‘a’, ‘b’, ‘c’, ‘p’, ‘q’, ‘san’}

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
181
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Prashant
Publisher
πŸ“ˆ
87%
Success Rate