At Westonci.ca, we connect you with the answers you need, thanks to our active and informed community. Discover comprehensive solutions to your questions from a wide network of experts on our user-friendly platform. Get immediate and reliable solutions to your questions from a community of experienced professionals on our platform.

How is this a SyntaxError?(python3)

How Is This A SyntaxErrorpython3 class=

Sagot :

Answer:

1 bracket, instead of 2 is closed in line 9

Explanation:

Given

The attached code

Required

Why is line 10 a syntax error?

The error points to line 10.

From the attached code, the line 9 is:

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

When converting an input to integer, the syntax is:

variable = int(input("Prompt"))

But, only 1 bracket is closed in the program, where 2 is required.

This is definitely a syntax error