quickrey1
quickrey1 quickrey1
  • 01-01-2021
  • Computers and Technology
contestada

find the error in the statement below

if height _variable >59;

print ("you can ride this roller coaster.")​

Respuesta :

Cytokine
Cytokine Cytokine
  • 01-01-2021

Since this code is in python, you have to follow python syntax.

All if statements must end with a colon not a semi colon. For instance,

if height_variable > 59; should be if height_variable > 59:

Also, the print statement should be indented into the if statement.

if height_variable > 59:

   print("you can ride this roller coaster.")

Answer Link

Otras preguntas

two trapezoid together to make a hexagon what was the perimeter of the hexagon pete made. explain how you know
the back-and-forth movement of living and non-living matter used in the production of living matter
what is the estimate of 6,904
you have 120 pieces of fabric to make a blanket. each piece of fabric is a square with a side length of 6 inches. you use as many pieces of fabric as possible t
M= 4 (7,7) what is the equation Ax+by=c
3 pintores pintando una casa en 5 días Cuántos días necesitarán 5 pintores para pintar la misma casa y Carpenter trabajando ritmo
answer question five and how thxxx
which is an important river valley in the sahel?
Is the brain a muscle?
1) Which of the following had the greatest impact on transportation during the second industrial revolution? A) the steam engine B) the internal combustion C) t