You are viewing a single comment's thread. Return to all comments →
here is the code:-
d={} t=int(input()) for i in range(t): n,p=input().split() d[n]=p while(True): try: name=input().strip() if name in d: print(f'{name}={d[name]}') else: print("Not found") except EOFError: break
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 →
here is the code:-