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.

8.1.9: Cookout Orders
I don’t know what I’m doing wrong

Ps. Also if you could help me with 8.1.8 Citation, Thank you


819 Cookout Orders I Dont Know What Im Doing Wrong Ps Also If You Could Help Me With 818 Citation Thank You class=

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