Computer Science, asked by Rogerperu15, 5 months ago

write a program to enter names of employees and their salaries as input and store them in a dictionary ​

Answers

Answered by FantomDX
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 ymanas137
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