+3 votes
in Class 12 by kratos

Write the output for the following codes:

A={10:1000,20:2000,30:3000,40:4000,50:5000}

print A.items()

print A.keys()

print A.values()

1 Answer

+4 votes
by kratos
 
Best answer

[(40,4000), (10,1000), (20,2000), (50,5000), (30,3000)] [40,10, 20, 50, 30]

[4000,1000, 2000, 5000, 3000]

...