A

Admin • 828.03K Points
Coach

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

Code:
list1=[1,3,4,2]

x=list1.pop(2)

print(set([x]))
  • (A) {1,3,4}
  • (B) {1,3,2}
  • (C) {2}
  • (D) {4}
  • Correct Answer - Option(D)
  • Views: 8
  • Filed under category Python
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.