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

CAN YOU THINK OF AN INSTANCE WHEN YOU WERE GUILTY OF DOING SOMETHING WRONG AND LATER CORRECTED THE SITUATION
What happens when you change the material through which a wave travels?
What is4(3x+1) using the distributive property
Which of these happens last? Nina hits a drum. Nina hears the sound of her drum. Sound waves travel through the air. The surface of the drum vibrates, creating
The graph of the equation y = - 3/4X - 3 has what slope?
Hello everybody! Can somebody help me please with these two questions? ( I don't know if it's really chemistry if not sorry! )
A set of object that share a common structure and common behavior in database is called ​
The parts of the rhetorical triangle are in a ______________ relationship. A. static B. adversarial C. dynamic D. fixed
Please help!!! 25 points
The larger the number in standard notation, the ____________ the exponent on base 10.