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 ratio of jakes money to joes money is 3:5. If joe gives jake $25, they will have an equal amount of money. How much money do they have altogether?
Please please help me out
I need help please ?!!!!
Read the following statements that describe an HIV infection. What is the correct order in which they occur? 1) Viral DNA enters nucleus and inserts itself int
What problem did William marburry have once president jefferson took office
what is true about ice and liquid water
. What did political cartoonist Thomas Nast work to expose?the secret dea behind the election of Rutherford B. Hayesthe illegal activities of New York City's "B
Do you think that people are generally kind and friend or born selfish and anti-social? examples?​
The volume of a sphere is 2 comma 143.57 m cubed. To the nearest meter​, what is the radius of the​ sphere? Use 3.14 for pi.
i dont know the answer. Can someone help me ?