Write a program to enter names of employees and their salaries as input and store them in a dictionary.
Source Code
d ={}
while True:
name = input('Enter name of Employee ')
salary = int(input('Enter salary '))
d[name]=salary
ans = input('Wants to Enter more record y/n? ')
if ans.lower()=='n':
break
print(d)
Output