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

need answer right away please
What is the feeling produced by a conflict or problem in a story that has not yet been solved?
la un depozit s-au adus in perioada recoltarii 25 t de cartofi in primele doua zile s-au vandut 230 q de cartofi . cate kg
European interest in the Middle East intensified after oil was discovered in the region. Please select the best answer from the choices provided. T F
Name the solid figure that has 3 rectangular faces and 2 triangular faces
A shoemaker bought 30 pairs of heels. How many individual heels did the shoemaker buy? a. 60 b. 15 c. 30 d. 120
The money in Juan's savings account earns 1 1/4% interest. Which value is less than 1 1/4 %? The values are: a. 1/4 b. 0.125 c. 1/80 d. 0.0114
how many racial groups existed in Latin america during the 18th century
what times 5 equals 70
The facets of intelligence include practical, experiential, and creative intelligences