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

simplify (1/x) + (1/(x+h)
A movie starts at 7:00 pm and lasts 108 minutes. What time does the movie end?
How many hours are 180 minutes
List all the commonwealth games mascots from 1982-2014
in the xy-plane above, point c has coordinates (6,9). which of the follwoing is an equation of the line that contains points 0 and c?
State whether the following statements are true or false. Justify.(i) For an arbitrary binary operation * on a set N,  a * a = a ,  for all a * N.(ii) If * is a
how do u find the area of a triangle
Rachel and David share 40 biscuits between them in the ratio 2:3, How many biscuits do they each get?
Which expression can be used to change 75 kilometers per hour to meters per minute?
The statement, "right angles measure 90 degrees," is an example of: A postulate A definition A theorem A conjecture