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

Solve for x 11x + 13 13x - 1
which fraction is equivalent 2/6
When did your self-image begin to develop?
Mr. Darling went shopping for some new school clothes and wanted to use his credit card to earn points for his purchases. At the start of the day he owed $35.74
PLEASE I NEED THIS BY 11 PM Answer the following questions given the ordered pairs below. {(3,4),(-1, 5), (-2, 0), (3,-2)} a) What is the domain? b) What is the
Graphs are ____ of relationships
Kim has $20 to spend for her fishing trip. She spends $12 on a fishing pole. Then, she finds $3. How much money does she have now?
If you needed to buy at least 5 water bottles AND at least 8 water bottles, how many water bottles would you need to buy?
Create a simple series circuit with a 20-volt battery, one 10.0 ohm resistor, and one 15-ohm light bulb. Set the wire resistivity to "tiny" and the battery resi
Can can someone help me with this I don’t know