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

how did the congress react after the communists took over all of vietnam
I need a paragraph on turkeys recent activity with the USA
What is the length of dc
Let f(x) = -3x + 2 and g(x) - 4x + 6. Find (f•g)(-5).
The scale of a room in a blueprint is 2 inches : 1 foot. A window in the same blueprint is 12 inches. How long is the actual window?
8TH GRADE MATH QUESTION!
Gundy Company expects to produce 1,308,000 units of Product XX in 2020. Monthly production is expected to range from 73,000 to 107,000 units. Budgeted variable
i need to know the conjecture
Which measure of center is most appropriate for this dataset showing number of baskets scored by the team's captain in each of the last 10 games: 5,4,6,12,4,4,6
Alan regularly works 40 hours per week as a nurse, earning $23.00 per hour. When he works overtime, he earns 1.5 times his normal hourly rate. What is Alan's ho