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

what is 1,622 rounded to the nearest thousand
you are in the locker room getting ready for physical education class. the class is playing volleyball today. your friends are being negative and keep repeating
factorise (a+b) + 3(a+b)^2
five reasons why homework should be abolished
Byron’s income last year was $61,700. He made $48,000 at his plumbing job and had income from an apartment that he rented out. If Byron earned the same amount o
which two square roots are used to estimate 42
a given cube has a volume of 1728 cubic inches. find the length of an edge
During which stage of the writing process do you explore a topic and organize ideas?
The mitochondria of eukaryotic cells release energy from glucose molecules through the process of cellular respiration. before cellular respiration can occur, h
Of the 8760 hours in a year one television was on for 876 hours what percent is this