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

Marcy split her income from last week equally between paying her student loans, rent, and savings. She put $650 in savings. How much did Marcy earn last week?
Trusts have become a widely used way to distribute an estate. True False
What are the terms in the expression 2x−4y+8 ? 2, 4, and 8 2x and 4y 8 2x, −4y , and 8
Using the table provided, which of the following answer choices represents ΔS for the reaction in the image? Standard Thermodynamic Values Select one: a. 18.6 J
During the Middle Ages, merchants, artisans, and their guilds contributed to the
See the attachment and please can you explain.
A person with an anxiety disorder is most likely to:
Alvin’s age is two times Elga’s age. The sum of their age is 60. What is Elga’s age?
Which of the following elements has properties different than the rest? Ac Co Cu Sc
Elisa graduated from college with a double major and was inducted into the phi beta kappa society. she was then offered a job in new york where she worked 12 ho