1.

Given the following Dictionary dict{1:'A',2:'B',3:'C',6:'D',4:'E'}? what is the output of the command print(dict[6])

Answer» It will show syntax error because you cannot use numerical as key in dictionary instead you have to use any alphabet


Discussion

No Comment Found

Related InterviewSolutions