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

xy+4y=3x-2, show that y is a function of x
in sparta when did training for war begin
What is the value of the underline digit in 5,436,788?
Colin earned $46 raking leaves. If he worked 1.5 hours yesterday and $4.25 hours today, how much did he earn per hour?
What is the purpose of a position paper?
what percentage of people live in cities and suburbs? a. 20% b. 40% c. 60% d. 80%
what has contributed to the decrease in the total number of animals living on the continent of North America
If you add 600and 500and 200.how much wood it be?show your work.
when one writes a typical paragraph, most of the sentences will be a. questions. b. statements. c. explanations. d. exclamations.
The original price for a case of paper is 12.88. The case of printer paper is on sale for 0.5 times the price. How much will Alison spend on 5 cases of printer