You are viewing a single comment's thread. Return to all comments →
Any toughts on why all the tests are Passed but getting Runtime error?
if __name__ == '__main__': n = int(input()) my_dict = {} for _ in range(n*2): s = str(input()) if " " in s: nameAndPhone = s.split(" ") name = nameAndPhone[0] phone = nameAndPhone[1] my_dict[name] = phone else: if s in my_dict: print(f"{s}={my_dict[s]}") 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 →
Any toughts on why all the tests are Passed but getting Runtime error?