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

=-=-=-=-=-=-=-=-=-=-=
A firm has $50 million in assets and its optimal capital structure is 60% equity. If the firm has $12 million in retained earnings available to invest, at what
Seaborg co-discovered 10 new elements and they were moved out of the main group to the
What is the slope of the line that passes through the points (-4,9) and (-8,3)? Group of answer choices 3/2 -2/3 -1/2
What is the population of world? a. 7.0 billion b.7.7 billion
how to write an essay with a poem?
What is the equation of the line shown in this graph?
Use the distributive property to rewrite the expression: 7b (x + y)
A nervous system disorder involving repetitive movements or unwanted sounds." DID Autism Tourette's Alzheimer's
PLSSSS HELPPPP MEEE I WIIILLL GIVVEEE BRAINLIEST!!!!!!!!!!!!! PLSSSS HELPPPP MEEE I WIIILLL GIVVEEE BRAINLIEST!!!!!!!!!!!!! PLSSSS HELPPPP MEEE I WIIILLL GIVVEE