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

How was this colonial grievance addressed in the U.S. Constitution?
need help answering these health questions.
El año pasado, yo _______ en aquella escuela. A. estudiaron B. estudiaste C. estudió D. estudié Reset Next
Find the area of a trapezoid with bases 2ft and 3ft and height 1/3 foot. Round your answer to the nearest tenth
Can you please help with 19&23? 19 says write an expression to represent the perimeter. Thanks!
How was this colonial grievance addressed in the U.S. Constitution?
Which is the most widespead language in the world, English or Spanish?
Plz help me with this question show pictures to plz
Which term refers to a person’s display image? A. avatar B. alibi C. proxy persona D. alternative identity
which of these is a biotic factor in a beach ecosystem