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

What does William brad fords quote one small candle mean?
I need to write the number 36 in expanded form
Which of the following are effective ways of practicing your speech? presenting it in front of a mirror recording it with a video camera presenting it to fa
Why might a scientist studying water pollution work with percents less than one?
Write an expression for the calculation double 7, multiply 3 and 1, and then subtract the second number from the first number
what are integers that are not whole numbers
If Theresa's daughter is my daughters mother then who am I to Theresa?
Find the greatest number you can add to 4315 without having to regroup how did you find the number
Express the number 20000 as a single digit integer times a power of 10
Which statement best explains why citizens should serve on juries? a) Citizens should serve on juries to make a lot of money b) Citizens should serve on juries