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

triamminetriiodocobalt (iii) overall charge?
Pythagorean theorem calc: find c, a=12.96148, b=11
Hi, I'm actually a good student i do my own work but this stuff makes no sense to me, my teacher isn't the best so if you could provide a answer and IF possible
Prince of dead in Egypt
Make a hypothesis about how you think the two species of Paramecium will grow alone and how they will grow when they are together.
what is the main factor that prevents the growth of tropical plants in the northern part of the us
The national school social work practice model recommends what ratio of school social workers to students?
Helppppppppppppp and I’ll love u forever
Experts/ace/geniuses helpp plz
6(2x+5Y) What is the equivalent expression