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

what year did america declare independence
I don't understand it
What is 4.26 divided by 3
What are malignant tumors?
what would a an efficient character do?
A triangular brace has an angle measure of 92 degrees, with a side opposite this angle measuring 10 inches. The base of the triangular brace, which is adjacent
What type of poetic device is used in the following line? In this head the all-baffling brain A) internal rhyme B) assonance C) alliteration
Which organism appeared on Earth first? gastropods or horn corals
what is the value of the red digit? 821,603,529
In New York State, there are approximately 1,400,000 native Spanish speakers. If the population of New York State is approximately 19,800,000, what percent of t