Find the best solutions to your questions at Westonci.ca, the premier Q&A platform with a community of knowledgeable experts. Connect with a community of experts ready to provide precise solutions to your questions on our user-friendly Q&A platform. Get quick and reliable solutions to your questions from a community of experienced experts on our 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.")

We appreciate your visit. Our platform is always here to offer accurate and reliable answers. Return anytime. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. Get the answers you need at Westonci.ca. Stay informed with our latest expert advice.