You are viewing a single comment's thread. Return to all comments →
STATUS: RUNTIME ERROR. ALL TESTS PASSED.
N = int(input()) dicc = {}
for i in range(N): name, number = input().split() dicc[name] = number
for i in range(N): name = input() if name in dicc: print(name+ "=" + dicc[name]) else: print("Not found")
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 →
STATUS: RUNTIME ERROR. ALL TESTS PASSED.
N = int(input()) dicc = {}
for i in range(N): name, number = input().split() dicc[name] = number
for i in range(N): name = input() if name in dicc: print(name+ "=" + dicc[name]) else: print("Not found")