P

Priyanka Tomar • 35.28K Points
Coach

Q. What is the output of the following program?
dictionary1 = {'GFG' : 1,
'Google' : 2,
'GFG' : 3
}
print(dictionary1['GFG']);

  • (A) Compilation error due to duplicate keys
  • (B) Runtime time error due to duplicate keys
  • (C) 3
  • (D) 1
  • Correct Answer - Option(C)
  • Views: 23
  • Filed under category Python

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.


Question analytics