sebast1an17 sebast1an17
  • 01-04-2021
  • Computers and Technology
contestada

Can someone tell me how this is a SyntaxError! (Python3)

Can someone tell me how this is a SyntaxError Python3 class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-04-2021

Answer:

The expression on line 9 required 2 brackets

Explanation:

Given

The attached code

Required

Why syntax error.

The error points to line 10, but the error is actually from line 9

To get an integer input, the syntax is:

variable-name = int(input("Prompt"))

From the attached code, the line 9 is:

amount = int(input("Enter cheese order weight: ")

By comparing the syntax to the actual code on line 9, only 1 of the brackets is closed.

This, in Python 3 is a sytax error

Answer Link

Otras preguntas

What are all the country's in UnitedStates
For all of my life, I have been a jogger. I first ran the Peachtree Road Race, a famous 10-kilometer race in Atlanta, ___________. Later I competed in both cr
The product nuclei may or may not be _______
Which two European countries extend east into Asia
A fair number cube ,labeled with 1 through 6 is rolled four times .What is the probability of rolling a 6 all four times ?
Which of these is NOT one of the themes presented in The Great Gatsby? Question 19 options: Degradation of society The American Dream truth vs. superficiality f
Cover crops grow between or under a main crop are called
What geographic feature forms Vietnam's western border?
When working on a research project, the focus of the research should be based on the goals. the topic. the method. the schedule.
Can somebody please help me