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

Can anyone tell me how this is a SyntaxError! (Python/coding)

Can anyone tell me how this is a SyntaxError Pythoncoding class=

Respuesta :

MrRoyal
MrRoyal MrRoyal
  • 06-04-2021

Answer:

The expression on line 9 requires 2 brackets

Explanation:

Given

The attached code

Required

Why syntax error.

On line 9 of the program, we have::

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

The instruction on line 9 gets an integer input from the user. However, this is incorrectly done

To get an integer input, the syntax is:

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

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

In Python 3, this is counted as a syntax error

Answer Link

Otras preguntas

60 / 72=fractions fraction 60 / 72 equals ​
An element has five isotopes. Calculate the atomic mass of this element using the information below. Show all your work. Using the periodic table, identify the
I need help with number 6
I need help on this plz
hello i am here to you are unique you are special u matter life will be better just wait my life is getting better slowly
PLZ HELP ASAP!!!! This has to be something I can write a whole essay about!!!!!! Complete the following sentence... I plan to prove that college athletes should
Write a paragraph summarizing how Japan was reunified during the Sengoku Jidai period.
please help me on this will give you brainliest
I have 3 questions I need your help with because I was not here in health class the meeting did let me in.
Quick please it’s for a test today