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

Solve for the missing variable :> thank you​
Blood consists of different types of cells — red blood cells, platelets, and white blood cells. Red blood cells transport oxygen throughout the body, platelets
How many terms are in the expression? 1.4c + 11.4 - 2c - 7.3c + 6.5
The Chinese Exclusion Act of 1882 resulted in the deportation of half of the Chinese in the United States. was only applied in California. was ruled unconstitut
How did the u.s intervene mexico
watson describes how he recognized that the two strands are held together by hydrogen bonds A) between the bases, B) adenine pairing with thymine, C) cytosin
N/6=N+7/8 Solve for N
How do you if the main character in the story is good
Please help with english excerpt from “France” from The Innocents Abroad by Mark Twain. (See Image above for question and answer choices.)
negative effects of indiscipline​