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

Write a system of equations with a solution (4,–3)
If a slope of a line is 2/0 is it 0 or undefined?
Find all powers of 4 in range 4 through 1,000
After what happened on April 19 can war between the colonies and Great Britain be avoided?
you measure or observe two events to occur at the same time one nearby and one further away. Which one did you actually see first?
Which of the following organisms can perform alcoholic fermentation? (1) yeast, (2) humans, (3) bacteria. a. 1 and 2 b. 1 and 3 c. 1 only d. 1, 2, and 3
An airplane travels 3,260 kilometers in 4 hours. What is the airplane’s average speed?
If 8 men can chop down 28 trees in one day, how many trees can 20 men chop down in one day?
Alicia estimates that the surface area of a rectangular prism with a length of 11 meters,a width of 5.6 meters,and a height of 7.2 meters is about 334 cubic met
Which of the kingdoms has the smallest number of known species