Computer Science, asked by anushkaarora407, 2 months ago

Write a program to create a dictionary having keys as Suppliers name and values as Price of Stock. ​

Answers

Answered by nkcthereaper
2

Answer:

x=int(input('How many values you want to give='))

dict={}

for i in range(x):

   y=input('enter Suppliers name=')

   z=int(input('enter Price of Stock'))

   print()

   dict[y]=z

print("dictionary=",dict)

Explanation:

Similar questions