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

Consider the line – 5x – 8y= 3. What is the slope of a line perpendicular to this line? What is the slope of a line parallel to this line?
Just chose one option In “The Solitary Reaper” the last two stanzas describe the speaker’s reaction to the ----------- Who is he 1 point Nightingale and the c
how to convert 3mm into cm​
4.05 LC) The graph shows y as a function of x: y Q P R S In which segment is the function decreasing? A) P B) Q C) R D) S
hi there plz help me
14. Which is the next level of government that responds to an incident when it has the potential to expand beyond the capability of local jurisdiction? A Foreig
no me da el pastel de chocolate!
What is the value of f(-1) ?
Which character from Achebe Things fall apart is best described as the protagonist foil
develop a theme of leadership from the poem the leader and the led​