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

Où est-ce qu’on peut faire du ski alpin?
Which form of natural selection is most likely to play a role in speciation?
Which kind of device is hardware capable of transferring items from computers and devices to transmission media and vice versa?
John had $165 in savings. He spent 20% of his savings on a new video game. How much did John spend on a new video game? Enter your answer in the box.
Which of the following identifies the issue in the following scenario? The Kyoto Protocol, a treaty created to address global warming, faced numerous arguments
The point (3,0) lies on a circle with the center at the origin, what is the area of the circle to the nearest hundredeth
Why don’t metals break when pounded into sheets or drawn into wires
1. What is the solution to the system of equations? 3x - 6y = -12 x - 2y = -8 (a) Use the substitution method to justify that the given system of equations has
Marco and Elaine are building a stand like the one shown to display trophies.
Which type of electromagnetic radiation cannot be focused?