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

How is this a SyntaxError?(python3)

How is this a SyntaxErrorpython3 class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-04-2021

Answer:

1 bracket, instead of 2 is closed in line 9

Explanation:

Given

The attached code

Required

Why is line 10 a syntax error?

The error points to line 10.

From the attached code, the line 9 is:

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

When converting an input to integer, the syntax is:

variable = int(input("Prompt"))

But, only 1 bracket is closed in the program, where 2 is required.

This is definitely a syntax error

Answer Link

Otras preguntas

The soccer team collected $800 at a car wash fundraiser. They charged $5.00 for small vehicles and $10.00 for larger vehicles. The amount collected can be model
Read the excerpt from "The Straw, the Coal, and the Bean.” The bean, who had prudently stayed behind on the shore, could not but laugh at the event, was unable
Health class how to naturally darken eyebrows without using chemicals?
Please help me or assist me in answering this Thank you 5 2/3 X 6 7/8
What is the primary goal of the United Nations?
Roger is at a wedding reception where he has been introduced to over 50 guests whom he has never met. He would like to remember as many names as possible.
write an essay on harry potter and the books
Can someone help me with 5?
Write the number five million four thousand three hundred in standard form.
For the following demand equation compute the elasticity of demand and determine whether the demand is elastic, unitary, or inelastic at the indicated price. (R