a = int(input("Enter numbers of employees: ")) dic = {} for i in range(1, a+1): name = input('Enter name of the employee: ') salary = int(input('Enter salary of employee: ')) dic.update({name: salary}) print(dic)