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

Is the prairie soil a biotic factor or an abiotic factor? Explain your answer.
What is the area of this face?​
Explain how the Earth's surface can be organized into continents and oceans. Describe this way of organizing the Earth in at least two to three sentences.
why did African Americans migrate or stay in the area in the area that they lived in ?​
a argument on why Pro Sport players should get paid for playing sports .​
Calculate the energy released when a 28.9 gram piece of copper is cooled from its melting point of 1083 C to 25.0 c the specific heat of copper is .385 j/g c
Find the area given figure. A) 44 B)60 C) 84 D) 72
Which of the following climate regions has the widest temperature range? A. Arctic B. Subarctic C. Marine west coast D. Tropical
What are the two main types of characterization
Okay hi I’m homeschooled but my friend has a super bad home life so she never has time for school so I’m really trying to help her out. The only problem is that