Check sibling questions

Predict the output of the following python code:  

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) 


Dictionary code - Example - Teachoo.png

The rest of the post is locked. Join Teachoo Black to see the full post.

Ask a doubt
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 13 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.