Q. What is the output produced by above code:


d1 = {5 : [6, 7, 8],"a" : (1, 2, 3)}

print (d1.keys())

print(d1.values())


Answer =

Output: -

dict_keys([5, 'a'])
dict_values([[6, 7, 8], (1, 2, 3)])
>>>

2 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post