Welcome to Westonci.ca, where you can find answers to all your questions from a community of experienced professionals. Explore thousands of questions and answers from knowledgeable experts in various fields on our Q&A platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.
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
Thank you for your visit. We're dedicated to helping you find the information you need, whenever you need it. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Thank you for choosing Westonci.ca as your information source. We look forward to your next visit.