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

How many books are in the percy jackson serie 1?I know the answer I just want to give points to people
Write 10 hundredths in standard form
Solve 4\5x-4\10=2\20
i need help, it explains what to do but i still don't get it. ://
can someone help me with this question
What style of singing involves creating words and sounds as the music is sung?
Roni and Allie are mowing the grass at the soccer field. Roni has a riding lawn mower and can mow the field in 30 minutes. Allie is pushing a lawn mower and can
In a 50-question test, the highest score in the class is three times the lowest score minus four. The difference between the highest score and the lowest score
What body of water lies on the west and east coast of india?
Give an example of how environmental science might involve geology and chemistry.