You are viewing a single comment's thread. Return to all comments →
My code get Runtime Error for a test case!!! Can you correct it for me???
n = int(input()) myDict = {} for i in range(n): name, phoneNumber = input().split() myDict[name] = phoneNumber for j in range(n): queryName = input() if myDict.get(queryName) == None: print("Not found") else: print(queryName + "=" + myDict.get(queryName))
Seems like cookies are disabled on this browser, please enable them to open this website
Day 8: Dictionaries and Maps
You are viewing a single comment's thread. Return to all comments →
My code get Runtime Error for a test case!!! Can you correct it for me???