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

A child holds onto a string attached to a toy boat and exerts a force of 7.5 N to pull the boat a distance of 9.2 m a long a straight shoreline. If the child ho
Why does Koenig spend time asking people , specifically Rabia and sad , where leakin park is located ?
Is it the right answer? Can someone help?
Based on the passage, explain why the nickname “The War to End All Wars” made sense as a nickname at the time.
The area of the base of a cylinder is 45 square inches and it's height is 10 inches. A cone has the same are for its base and the same height. What is the volum
Determine the value of y, if x is -5. y = |x + 12
Can someone help me define these? Please
The circumference of a circle is 76π inches. What is the radius of the circle?
How can you increase a grade in class?
Identify the constant term in this expression 7p - 3p + 9 + x