write a program to enter names of employees and their salaries as input and store them in a dictionary
Answers
Answered by
4
Answer:
dic = { }
while True :
name = input("Enter employee name :-")
sl = int(input("Enter employee salary :-"))
dic[ name] = sl
user = input("Do you want to quit then enter yes :-")
if user == "yes" :
break
print(dic)
Answered by
1
Answer:
python program
Explanation:
dic = { }
while True :
name = input("Enter employee name :-")
sl = int(input("Enter employee salary :-"))
dic[ name] = sl
user = input("Do you want to quit then enter yes :-")
if user == "yes" :
break
print(dic)
Similar questions