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

Choose the correct word from the list to complete each sentence. Jason missed lunch, and now he was ______. refuge purge shrill plague martyr famished debate mi
PLEASE HELP List five of the muscles in the body.
Which idea in the English Bill of Rights was most likely influenced by the Magna Carta? guaranteeing the right to choose leaders guaranteeing the right to a fai
I’LL MARK BRAINLIEST!!!
Examine the aloe triangles below HELP PLZZ
Translate the words in the photo first to get brainliest!
A plant has a genotype of SsYy for Seed shape (S=round, s= wrinkled) and seed color. (Y= Yellow y= green.) What allele combinations could this plant have in its
WILL GIVE BRAINLIST HELP!!!!!!!!1
explain how the absorption of energy (heating) affects the speed of the particles in a substance
A spring with k = 33.5 N/m has a 1.20 kg mass attached. It is pulled 0.120 m and released. What is its maximum speed? (Unit = m/s)