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

What is the meaning of New retail?
Evaluate 12C4 and 11P4
The following is an example of a land where ethnic conflicts have occurred: A Somalia B Eritrea C Ethiopia D All of the Above
Revenue or income, minus departmental expenses and undistributed expenses equals:
How many liters of oxygen are required to react completely with 1.2 liters of hydrogen to form water? 2H2(g) + O2(g) → 2H2(g)
the aurora borealis caused by the
Reread this text from paragraph 4 what effect is this text most likely to have on readers?
Can’t work out angle 2x-30 I don’t know what this means and is the angle next to 68 a right angle or straight line : would I subtract 180 - 68
The nine digit number that identifies the bank that a check came from is called
Please help last question (10 POINTS)