sebast1an17 sebast1an17
  • 01-04-2021
  • Computers and Technology
contestada

Can someone tell me how this is a SyntaxError! (Python3)

Can someone tell me how this is a SyntaxError Python3 class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-04-2021

Answer:

The expression on line 9 required 2 brackets

Explanation:

Given

The attached code

Required

Why syntax error.

The error points to line 10, but the error is actually from line 9

To get an integer input, the syntax is:

variable-name = int(input("Prompt"))

From the attached code, the line 9 is:

amount = int(input("Enter cheese order weight: ")

By comparing the syntax to the actual code on line 9, only 1 of the brackets is closed.

This, in Python 3 is a sytax error

Answer Link

Otras preguntas

Please help ASAP!!!!!!!
Why is it that people from some regions often speak more than one language?
what is woman empowerment . write any six points​
Number 9.) A car is driving at 90 miles per hour. What is its speed in feet per second? Roynd your answer to the nearest whole number
When Beowulf reaches Herot, he is met by Hrothgar's men who take all weapons from them. They go to Herot with only their shields. Why do you think Hrothgar does
Year 8 maths Finding the rule using a table of values
The mass of an object is measured to be 5.55g. The actual weight of the object is 6.00g. What is the percent error?
S = 2lw + 2wh + 2hl, solve for h (surface area of a rectangle)
ANSWER BOTH PLSSSS THANKS!
HOW HUMANS THREATEN PUMAS JUST BY BEING NEARBY