At Westonci.ca, we provide reliable answers to your questions from a community of experts. Start exploring today! Experience the convenience of finding accurate answers to your questions from knowledgeable professionals on our platform. Join our platform to connect with experts ready to provide precise answers to your questions in different areas.

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

We hope our answers were helpful. Return anytime for more information and answers to any other questions you may have. Your visit means a lot to us. Don't hesitate to return for more reliable answers to any questions you may have. We're glad you visited Westonci.ca. Return anytime for updated answers from our knowledgeable team.