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 the probability that a randomly selected dunlop tire lasts between 65000 and 80000 miles?
What were labor unions trying to achieve throughout the Industrial Revolution?
Which is not determined by the type and arrangement of atoms in a mineral? A. thermal properties B. magnetic properties C. electrical properties D. its position
What were labor unions trying to achieve throughout the Industrial Revolution?
name one specific instance where science was or is being used to make decisions
A rocket carrying fireworks is launched from a hill 80 feet above a lake. The rocket will fall into the lake after exploding at its maximum height. The rocket's
What are the requirements for photosynthesis to occur, and what is the role of ATP in this reaction?
What specialist would care for the trachea?
Why is Roosevelt's speech so memorable? He emphasizes certain words and phrases It compared Americans to an army He used logic rather than emotion It was record
What is a reflected Ray?