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

4 teammates share 5 granola bars evenly. How much does each person get?
A response that, after conditioning, follows a previously neutral stimulus is called the a. neutral b. conditioned c. paired d. unconditioned response.
Using money to try to make more money is called _____. saving investing trading diversifying
C = 2πr for r what is the answer? I need help solving this
Organisms produce their own energy or provide energy for other organisms in a food chain. Many different organisms can be found in the Amazon rainforest in Sout
What Is A scuba divers biggest enemy
Identify the simple predicate in the following sentence. A teaching degree requires four years of college education.
I need help with number 11
underline the adjetives in the sentences
Some plants use their own pollen to produce seeds. True False