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

Evaluate the expression for the given value of the variables (B - 2)² + 10 B=7 20 25 30 35
Here is another question!!! These questions are on my test by the way I have been stuck on them for 30 minutes
Can somebody help me. Will Mark brainliest.
4.6 isosceles and Equilateral triangles
Find the slope of the line that passes through each of the following pairs of points: (-1,4) and (3,-8)
you need to answer A and B!!! PLEASE HELP
PLEASE HELP ASAP!! ILL MARK BRAINLIEST QUICK!!!
What began to trouble President Monroe? IT'S DUE TOMORROW!!!!!!!!!!!! PLZ HELP!!!!!!!!!!!!
PLz HELP FAST 20 points​
1. One positive number is 3 more than another. Their product is 180. What are the numbers?A. 12 and 13B. 13 and 14C. 12 and 15D. 13 and 152. What is the area of