Welcome to Westonci.ca, the place where your questions find answers from a community of knowledgeable experts. Discover comprehensive answers to your questions from knowledgeable professionals on our user-friendly platform. Our platform offers a seamless experience for finding reliable answers from a network of knowledgeable professionals.
Sagot :
The program is an illustration of loops
What are loops?
Loops are program statements that are used to perform repeated operations
#This gets the product name
product = input("Product: ")
#This gets the quantity
quantity= float(input("Quantity: "))
#This initializes the total quantity to 0
total = 0
while(product.upper() != "XXX"):
#This calculates the total price
total+=price
#This gets the product name
product = input("Product: ")
#This gets the quantity
quantity= float(input("Quantity: "))
#This prints the total quantity
print(total)
Read more about loops at:
https://brainly.com/question/6954187
We appreciate your time. Please revisit us for more reliable answers to any questions you may have. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Stay curious and keep coming back to Westonci.ca for answers to all your burning questions.