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

I understand that I answered wrong with 15ml instead of 14, but would I have to put the 0 after or no?
Simple squamous epithelial tissue is found in blood vessels and lung tissue. - Why is this type of tissue used in these body parts? - Explain how the form of t
Can y’all please help me out ignore what I wrote
What do the Malagasy have that is unusual or surprising?​
A button machine produces one button in 0.15 seconds. How many buttons are produced in 48.6 seconds?
Sandi got 1/1/4 pounds of gummy worms if she left the store with 3 pounds of gunmys worms and skittles ,how many pounds of skittles did she get
The following passage (paragraphs 21-23) adds to the development of the story mainly by We are very miserable,” said Darzee. “One of our babies fell out of the
Major grade please help
difference between conventional and non conventional resources​
what are 2 important factors for the action of micro organisms​