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

0.0000000708 in scientific notation
What is capote's purpose for writing in cold blood?
¿Cómo se dice “to set” the table en español? pedir traer poner servir
It is 42 1/2 miles from Eaton to Baxter and 37 4/5 miles from Baxter to Wellington. How far is it from Eaton to Wellington if you go by way of Baxter?
ALWAYS use significant figure rules. Remember that these rules apply to all numbers that are measurements. A person walks along a road 2 miles and rests. Then t
Rewrite 3 1/12 as a decimal number. 3.083 _ 3.8 3 _ 3.08 3 _ 3.0 8
Plz someone help me with this
Sapling classify characteristics as unique to prokaryotic, comon to both cell types
Comfy inn earned $218,310 in taxable income for the year. how much tax does the company owe? $86,311.20 $85,140.90 $68,390.90 $69,998.20 $65,240.10
Most of europe is located in the tropics (between the tropic of cancer and tropic of capricorn). a. True b. False