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's the answer ???????
What are two thousands less than two millions?
how do you prove the identities? 1) 1- cos²Θ ≡ sin²Θ 2) (1-sin²Θ) tanΘ≡ cosΘ sinΘ
What is the value for 6 days in the linear function, please help!!(20 POINTS!!)
How many triangles can be constructed with angles measuring 25º, 25º, and 130º? one more than one none
What was henry the navigator searching for?
Which of the following is true about a well-written paragraph? a. it minimizes sentence lenght. b. it opens and closes with a topic sentence. c. it contains
For Germany, why would the most efficient form of attack on Britain be by air? (1 point) -The distance between Berlin and Britain prevented tanks from moving s
Change the verb to indicate that it is an activity that is currently in progress using the correct form of estar in blank 1 and correct form of action verb in b
Baking soda has a pH of 9, and household ammonia has a pH of 12. This means that ammonia is ____ times more basic than baking soda.