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

inequality 3x -6 ≤ -3
How many pairs of vertical angles are there9
Label all stream order 1, 2, 3 and 4 stream on the diagram below
inequality 3x -6 ≤ -3
Who is announced as the winner of Spring Fling Queen by Duvall?a) Regina Georgeb) Caddy Heronc) Gretchen Wienersd) Karen Smith
How is Total War different from prior military conflict?
If a protein-encoding gene contains introns and exons, it is likely that: a) It is a prokaryotic gene b) It undergoes splicing during mRNA processing c) It is o
Two ploughmen can plough a filed in 10 days. Find the out how long it would take 5 ploughmen to plough the same filed working at the same rate.
LeBron Raymone James, Sr., The First Player In NBA History With 40,000 Points During The Denver Nuggets And The Los Angeles Lakers At Crypto.Com Arena In Los An
2826 to the nearest hundred