We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
Day 8: Dictionaries and Maps
Day 8: Dictionaries and Maps
Sort by
recency
|
2717 Discussions
|
Please Login in order to post a comment
This is python solution can any one fix the error it failed test case1 n= int(input()) phonebook = {} for i in range(n):
queries = []
for i in range(n): query = input() queries.append(query)
for query in queries: if query in phonebook: print(f"{query}={phonebook[query]}")
Has anyone else had problems with test case 1 with C++? In the other test cases my code is fine
This is my code in case someone tells me my error.
Any toughts on why all the tests are Passed but getting Runtime error?
Here's what I have for Python 3:
code in python