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

A tree casts a shadow 27 m long. At the same time, the shadow cast by a 66-cm tall statue is 56 cm long. Find the height of the tree to the nearest tenth of a
Amy raised £n for charity. Chris raised £18 more then any. The mean amount raised by the two of them is £45. Work out how much money each one of them raised
what is glossities and deficiency
explain in steps how to graph this linear inequality 2x+3y > -2
Jim has gotten scores of 99 and 93 on his first two tests. what score must he get on his third test to keep an average of 90 or greater
What's the other word a weak or lifeless feeling
write in decimal form fourteen and eighty-Four hundredths
round to the nearest hundredth 5.6192
A sound wave of 70 cm travels 840 m in 2.5 sec. What is the velocity and frequency of sound?
What's the other term for: one who overindulges in food and drink