Looking for reliable answers? Westonci.ca is the ultimate Q&A platform where experts share their knowledge on various topics. Explore a wealth of knowledge from professionals across different disciplines on our comprehensive platform. Explore comprehensive solutions to your questions from a wide range of professionals on our user-friendly platform.

find the error in the statement below

if height _variable >59;

print ("you can ride this roller coaster.")​

Sagot :

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.")