Westonci.ca is the premier destination for reliable answers to your questions, provided by a community of experts. Join our Q&A platform to get precise answers from experts in diverse fields and enhance your understanding. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.
Sagot :
Answer:
The expression on line 9 requires 2 brackets
Explanation:
Given
The attached code
Required
Why syntax error.
On line 9 of the program, we have::
amount = int(input("Enter cheese order weight: ")
The instruction on line 9 gets an integer input from the user. However, this is incorrectly done
To get an integer input, the syntax is:
variable-name = int(input("Prompt"))
By comparing the syntax to the actual code on line 9, only 1 of the brackets is closed.
In Python 3, this is counted as a syntax error
Thanks for stopping by. We are committed to providing the best answers for all your questions. See you again soon. Thank you for your visit. We're committed to providing you with the best information available. Return anytime for more. We're dedicated to helping you find the answers you need at Westonci.ca. Don't hesitate to return for more.