Find the best answers to your questions at Westonci.ca, where experts and enthusiasts provide accurate, reliable information. Join our platform to connect with experts ready to provide detailed answers to your questions in various areas. 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.")

Thank you for trusting us with your questions. We're here to help you find accurate answers quickly and efficiently. Thanks for using our platform. We aim to provide accurate and up-to-date answers to all your queries. Come back soon. We're here to help at Westonci.ca. Keep visiting for the best answers to your questions.