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

Help in this question, please.
What are transferred in an oxidation-reduction reaction
A navigator marks three locations on a satellite map as shown. If the distance from Serravalle to San Marino is 982 miles, and the distance from Chiesanuova to
This questions got me really confused please help?
Why is oil called a hydrophobic substance? A. Oil is very slippery to the touch. B. Oil is flammable and water puts out fires. C. Oil mixes with water only a
math question down below
What benefit would mandatory school attendance achieve for school children?
The Edo Period came into being after the _________________.
The most important reason to properly clean a cutting board is to
Sofias gym membership is $275 per year in addition to an annual locker fee of $95. What is the monthly fee?