Looking for trustworthy answers? Westonci.ca is the ultimate Q&A platform where experts share their knowledge on various topics. Experience the convenience of getting accurate answers to your questions from a dedicated community of professionals. Get detailed and accurate answers to your questions from a dedicated community of experts on our Q&A platform.

Can someone tell me how this is a SyntaxError! (Python3)

Can Someone Tell Me How This Is A SyntaxError Python3 class=

Sagot :

Answer:

The expression on line 9 required 2 brackets

Explanation:

Given

The attached code

Required

Why syntax error.

The error points to line 10, but the error is actually from line 9

To get an integer input, the syntax is:

variable-name = int(input("Prompt"))

From the attached code, the line 9 is:

amount = int(input("Enter cheese order weight: ")

By comparing the syntax to the actual code on line 9, only 1 of the brackets is closed.

This, in Python 3 is a sytax error