Welcome to Westonci.ca, your go-to destination for finding answers to all your questions. Join our expert community today! Discover reliable solutions to your questions from a wide network of experts on our comprehensive Q&A platform. Discover detailed answers to your questions from a wide network of experts on our comprehensive Q&A platform.
Sagot :
Answer:
The correction to the code is as follows:
order_1 = ("Lee",0,2)
order_2 = ("Tamia",1,0)
order_3 = ("Edward",1,1)
print("You need to buy",order_1[-1],"hotdogs")
print("You need to buy",order_2[1],"burgers")
print("You need to buy",order_3[1],"burgers and",order_3[2],"hotdogs")
Explanation:
The first three lines of the program is bug free.
However, the last 3 print statements are not.
(1) The statement to be printed must be in open and close parenthesis
(2) Change the + to comma (,) because the print statement includes integer and string values
(3) Lastly, the tuple items in the last statement must be printed separately
We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. We hope you found this helpful. Feel free to come back anytime for more accurate answers and updated information. Thank you for trusting Westonci.ca. Don't forget to revisit us for more accurate and insightful answers.