InterviewSolution
Saved Bookmarks
| 1. |
Question 23:Find the output of the following program:dictionary = {}dictionary[1] = 1dictionary['1'] = 2dictionary[1] += 1sum = 0for k in dictionary:sum += dictionary[k]print (sum)(A) 4(B) 3(C) 2(D) 1 |
| Answer» | |