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

The above picture represents the different stages a cell goes through in its "lifetime." Specific genes within the DNA, called inhibitors, stop the cell cycle i
In "The Red-Headed League," why do the criminals plan to commit their crime on Saturday?
the presidential election of 1973 resulted in a landslide victory for
The vice president has _______ power under the Constitution, but recent vice presidents have had_______ power. A. only ceremonial, more B. authority, limited C.
In world war 1 what type of warfare did the United States engage in??
Solve the equation below
Which statement is true about a cell wall but not a cell membrane
Where did Phoenican emerge from?
Which emotion describes Gulliver's initial reaction to hearing about the struldbrugs best?
mr. Hightower recorded the amount of each project that had been completed at the end of the week. the line plot describes the information he record ed. what fra