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 pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
What is a direct combination reaction?
You have a cylinder with a diameter of 15 inches and a height of 12 inches. What is the volume of the largest sphere thg will fit inside it? If you can will you
What is a direct combination reaction?
How does transpiration play a  role in the water cycle ?
What two major processes are involved in the oxygen cycle?
A pound of seedless red grapes costs $2.75. Drew must spend less than $9.35 on a bunch of seedless red grapes.Inequality:Solution:Interpretation:
in what ways is climate controlled by the sun and the water cycle ?
How is the numeral 35.012 written in words and why
Trying to translate word problems. Five times the sum of 3 and twice some number is 70. what is the number?