sebast1an17 sebast1an17
  • 01-04-2021
  • Computers and Technology
contestada

How is this a SyntaxError?(python3)

How is this a SyntaxErrorpython3 class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-04-2021

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

Answer Link

Otras preguntas

How were the Voting Rights Act of 1965 and the Fifteenth Amendment similar?
why is martin luther king considered a hero of freedomand toleranace?research the jim crow laws tohelp you answer the question.​
what is the best way to help you ensure continued success in both fitness and life​
Kathy distributes jelly beans among her friends. Alia gets 4^2 fewer jelly beans than Kelly, who gets 3^3 jelly beans. How many jelly beans does Alia get? A. 4^
name at lest 3 of the goals of plain
What is the solution of (4x-16)1/2=36^
A new tea shop placed an ad in the local newspaper asking people who usually drink coffee to try drinking tea. What is the main purpose of this advertisement?
The cost of producing x soccer balls in thousands of dollars is represented by h(x) = 5x + 6. The revenue is represented by k(x) = 9x – 2. Which expression repr
What is the product? (x − 3)(2x2^2− 5x + 1)
What was the impact of the slave trade