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

does someone mind helping me with this problem? Thank you!
4x+7-6x = 10 + 3x + 12
what is the atomic mass of CO2 in atomic mass units?
PLEASE HELP WILL GIVE POINTS! any bots will be reported
$1=R8,4661, if the of shoes cost R1500. how much does it cost in USA,?​
In ______ reproduction, the offspring are mostly genetically identical (except for some mutations); in ______ reproduction, most of the offspring are geneticall
why are black hole invisible? short answer ​
An airplane ascends from the ground at an angle of 17°. When the airplane has traveled a horizontal distance of 650 ft, what is its height above the ground to t
help me solve this image pls !!!
Read each excerpt from “To Build a Fire.” Then, identify the part of the plot it comes from. “‘You were right, old hoss; you were right,’ the man mumbled to the