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 sum of the speed of two trains is 722.7 miles per hour. If the speed of the first train is 3.3 mph faster than the second train find the speeds of each
0.59 write the decimals in expanded form
Gail practices swimming for 1 and 1 fourth hours swimming every day how much time does she practice in a week
simplify using order of operations(PEMDAS):(2^3x6)-3^2
how does oral history help us understand the past
What's the square root of 247
Psychology question Jeremy grew up in an area where the land was flat. Sally grew up a large city with tall buildings. How may their depth perception be diffe
what is the first 5 multiples of 32 and the first 5 multiples of 29
a snowbarder decends a 12000-ft hill in 3min. hat is the mean change in evlevation per min.
what is the volume of a block with dimensions 2.56cm x 4.652 cm x 8.70 cm ??