def cityState(): stateMap={"pittsburgh":"PA","chicago":"IL","seattle":"WA","atlanta":"GA","richmond":"VA"} city=input("enter a city NAme: ").lower() if (city in stateMap): print(city," is in ",stateMap[city]) else: print("sorry. I have not heard of it") def counter(): counts=dict() counting=True while counting: n=int(input("enter an integer (0 to quit): ")) if (n == 0): break if (n in counts): counts[n]=counts[n]+1 else: counts[n]=1 print(counts)