O Level Exam : Practical Question
📝 HTML
🎨 CSS
⚡ Java Script
dict={} ch='y' while ch=='y' or ch=='Y': name=input("Enter name of product : ") price=eval(input("Enter the price of product : ")) dict[name]=price ch=input("Want to add more items (Y/N) : ") print(dict) nm=input("Enter the product you want to search : ") for x in dict: if x==nm: print("Product found and the price of product ",x," is ",dict[x])
▶ Run Code
🖥 Output: