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 is a clause? Clapping and laughing excitedly Whereas I love ice cream The captain and his rowdy crew standing To get up and go
Saint Patrick’s accomplishments in Ireland are known because __________.
a creek runs along a distance of 16,300 feet.About how many miles long is the creek
How are fossils of extinct organisms included in branching diagrams
Many 12-15 year olds have access to the internet which cannot be supervised by an adult. Discuss the problems that this might cause.
what is 1/3 + 7/12 x 4
What is the fluid that fills the nucleus called?
What is the synonym for discussion
In the 2000 election, California had the A.most electoral votes and selected George Bush for president B.least electoral votes and selected Al Gore for presiden
how to simplify (5x²y³)²