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

The American Revolution has been important in world history because it __________. A. the first communist revolution in history B. encouraged later revolutions
what number is 6.1% of 60
can you factor 30 X square minus 5X to the third
Is this an even or odd function? f(x)=5-3x
The __________ gave women the right to vote.
Jane wrote a note to the teacher wut is the preposition
Equivalent mixed number for: 21/8 = ?
3x + 2 >= 11 I need to understand how to do it on a number line.
how do you make 28/6 in to a mixed fraction in simplest form
What is Linear Mime?