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

Tina bought some nail polish and lip gloss at the store. The nail polish cost $4.50 per bottle and lipgloss cost $7 per tube. Tina bought 9 items and spent $50.
9 hundred thousands equal how many tens
Spain has coastline on which of the following sides?a.northernc.southernb.easternd.all of the above
A class has 6 boys and 15 girls. What is the ratio of boys to girls
what is the names for plants that survive a major disturbance?
what 5000 is 1/10 of?
which digit has the same value in both numbers? What is the value of that digit? 123,456,789 987,654,321
Which of the following organisms lacks a coelom? (A) roundworms (B) segmented worms (C) clams (D) grasshoppers (E) people
Express as a unit rate: 2400 miles in 48 hours.
the cube of x plus 5