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

Sean was at batting practice he swung 25 times bout only hit the ball 15 times. Describe and write more than one ratio that is related to this situation
what is 9.35 as a fraction
What are some of the changes in the way people live in the United States now compared to a hundred years ago
The English Bill of Rights declared that each member of Parliament had the right to
what is the square root of 1026?
Which statement is true for single-celled organisms? A. They are often harmless. B. They always cause disease. C. They only live inside
The Milky Way Galaxy has at least two hundred billion stars write half this number of stars in standard form
which mountain range is located east of the Mississippi river
why do you think the French people welcomed Napoleon back so eagerly?
How does the stability of an ecosystem depend on its producers