InterviewSolution
Saved Bookmarks
| 1. |
Question 25:Find the output of the following program:counter = {}def addToCounter(country):if country in counter:counter[country] += 1else:counter[country] = 1addToCounter('China')addToCounter('Japan')addToCounter('china')print (len(counter))(A) 0(B) 1(C) 2(D) 3 |
| Answer» | |