I’m stuck with a HackerRank’s challenge
this is text of challenge : https://www.hackerrank.com/challenges/30-dictionaries-and-maps/problem
and this is my code that I developed:
# Enter your code here. Read input from STDIN. Print output to STDOUT def list_address_book(n, address_book): n = int(input()) address_book = dict() user_input = input() key , value = user_input.split() address_book [key] = value for key , value in address_book : if key == "": print("Not found") else: print (address_book[key] [value]) if __name__ == "__main__": list_address_book(n,address_book)
I know that the call 's function is wrong because give me a error about parameters that I put, but I don’t know how to fix it.
Have you some suggestions?