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

20 points People disagree whether the United States should have gone to war against Mexico. Should the United States have declared war? Opinions Please The Unit
Can someone explain the equation Q = M C delta T or Q = MCΔT Thanks!
the reproductive system of a male mammal provides
Which statement accurately describes the significance of the Magna Carta? A. It gave absolute power to the English king over the church and nobility. B.
What would be the most likely effect of one company buying a competitor?
Explain who or what "Año Viejo" is and its significance.
A student government organization is selling Christmas trees as a fundraiser. On Friday, they sold 5 noble fir trees and 3 douglas fir trees for a total of $420
What was religion like in Shang China?
the volume of a rectangle prism with square bases is 5880 cubic inches. it has a height of 30 inches. find the side length of the square base.
PLEASE HELP I GIVE THANKS