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

Write 90,523 in Word form
The New Deal was designed to distribute the nation's abundance to: A. private industry B. foreign countries C. those most in need D. minorities only
which is more 4.027 or 4.0092
Select all that apply. Sun Yat-sen was going to enact democracy in three phases. What were they? -The army would rule while establishing national unity. -The
what is the value in the the 4 in 783,549,201
9000 equals to what tens
why is 85 a prime number
Numbers such as 1, 4, 9, 16, and 25 are called
Heat is best defined as a. friction. b. temperature. c. the flow of matter from one point to another. d. energy in the motion or vibration of molecules in a sub
Who looked for riches and new land