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

1.If you cross two pea plants that are heterozygous for flower color (Pp), what is the percent chance that the offspring will be white? 2.Round peas (R) are dom
Are pencils biotic or abiotic because its not living but it was made out of wood which was a live
A track is 200 meters long. How many times must Julius run around the track to run 3 kilometers ?
When you round 6 5/11 what's the nearest whole number
how many wars did henry II win
What are the three types of power a government may exercise?
express each ratio as a fraction in simplest form 3 gallons to 15 quarts
Is a baseball and cannon are dropped from the same height at the same time, which ball will hit the ground first?
list five numbers that hav 3,5,and 7 as prime factors
write an equation in standard form for the line that passes through the points (4,5) and has a slope m= 2/3