• + 0 comments

    I am facing a runtime issue in test case 1 in the following code (most probably due to time limit)

    # Enter your code here. Read input from STDIN. Print output to STDOUT
    number_of_entries = int(input())
    Name_phone_number_dict = {}
    
    for _ in range(number_of_entries):
        input_split = input().split(' ')
        Name_phone_number_dict[input_split[0]] = input_split[1]
    for _ in range(number_of_entries):
        name_check = input()
        if name_check in Name_phone_number_dict:
            print(name_check+"="+Name_phone_number_dict[name_check])
        else:
            print("Not found")
    

    How to tackle this, is there any better way to do this in python.

    `