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

What is 9x10 to the third power
the Adams-onis treaty was signed to ___
A classic creation story tells how the world was made or humanity came into existence. However, a creation story doesn’t have to be limited to the origin of the
a blank is a quality that has magnitude and direction
samira ran 3 more miles than twice the number of miles ada ran. which statement makes this comparison using the correct variable expression? if ada ran m miles,
a square deck is 300 feet about how long is each side of deck ? round the answer to nearest foot
The label horror story is an example of .....a Genre
explain how sectionalism affect economics and politics in the United States today
what is the quotient? 3806 _________ 22
Places on the internet where people can post and read ideas are called A. Apps B. Emails C. Forums D . Texts