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:
![Dictionary code - Example - Teachoo.png](https://d1avenlh0i1xmr.cloudfront.net/395deb9d-df69-4f6c-89ca-5176a2fc300f/dictionary-code---example---teachoo.png)
The rest of the post is locked. Join Teachoo Black to see the full post.