Explore Westonci.ca, the leading Q&A site where experts provide accurate and helpful answers to all your questions. Get quick and reliable solutions to your questions from a community of experienced professionals on our platform. Experience the ease of finding precise answers to your questions from a knowledgeable community of experts.

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