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

which of the following movement tried to stop people from drinking too much alcohol in the 1800’s
Look at the timeline on page 44 and 45. What event happened in the year 1535?
What does teleport mean ;-;
Examine the words listed below. graphic autograph photography telegraph phonograph What root word do all of these words share?
In the 1600s and 1700s, Europeans established themselves in the West Indies to search for precious metals and to grow crops such as coffee. find a labor force f
Using the unit circle, on what interval is the cosine function increasing?
Y’all help me. PLEASE
The one man who did not start a North American settlement was
Why is dignity important?​
Choose all points non-coplanar to plane Z. Please help its not college level I do not know how to change it but yeah plz help.