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

What is the answer to 2x^3(5x-1)
list 2 plants that grow in the grass savanna? list 5 animals that live in the grass savanna?
what is the approximate longitude of the most easterly boundary of the united states
Using the subject “usted” and the verb in the imperative, tell your instructor three things she or he must do. Then tell your instructor two things she or he mu
who is the murder in The Westing Game
Help ........................
i need help.. ASAP!! i figured out the first one but i don't think it's right..
Explain how to do this
Shannon is building a rectangular garden that is 18 feet wide and 27 feet long write an equation to represent the area shannon's garden in your equation let g r
what is the thematic message of I Sing the Battle? What is the lesson that the author is expressing through out the poem?