Predict the output of the following python code:
num1=dict([('a',"hello"),('b',"welcome")])
print('num1 = ',num1)
num2=dict([('a',"hello"),('b',"welcome"), ('c', "good bye")]) print('num2 =' ,num2)
num3 =dict(dict(zip(['x','y','z'],[23,45,67])))
print('num3 =', num3)
Answer:
The rest of the post is locked. Join Teachoo Black to see the full post.