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

List two factors that might cause an organism to restrict its use of a resource.
Explain how engineers and scientists may work together to produce a protein in the lab.
What is HIV and the causes
what is perpendicular to y= 3x -9 and passes through the point (3,1)
Explain why the current is reduced as electrons move through a conductor.
Jonathan has been on a diet since January 2013. So far, he has been losing weight at a steady rate. Based on monthly weigh-ins, his weight, w, can be modeled by
NaOH  + H2SO4 =NaOH + HNO3  =Cu(OH)2 + HCl =                H2SO4 =                        HNO3 =
Determine the half-life of potassium if in 3460 years a 200 g sample decayed into 25 g
Why does a pendulum eventually stop swinging?
A box contains bags of crisps. Each bag of crisps weighs 25 grams. Altogether, the bags of crisps inside the box weigh 1 kilogram. How many bags of crisps are i