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

a steel object of mass 30640kg has a volume of 4m^3. calculate it's density​
what is the energy of a moving mass? Potential Energy Kinetic Energy Elastic Potential Energy Thermal Energy Work
please help me ( send me photo of doing this pls)​
What'd the average speed of 58 and 312
Review the information about the composition of rock samples retrieved from the Gale crater on Mars. How could this information be useful for scientists?
Hello, can someone help me, please ? I need to answer those questions specifically : 1. Why would people blame all members of an ethnic or religious group for t
Hi guys, me again, need help on this pls.
Write an equation for the function graphed below. The y intercept is at (0,0.5)
How is the character in the book the man of the crowd developed
May I please receive help