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

100° 100⁰ X = ??????
Hey, How are you what you doing
Which represents the inverse of the function f(x) 4x? O h(x) = x + 4 O h(x) = x - 4 O h(x) Sx O h(x) = ~x
= A coat is reduced $24 from the original price of $400. What is the percent decrease? The price of the coat decreased by%. K
1.07 x 104 -3.38 × 10³
Question 2 (4 points) Draw in a complementary set of nucleotides on the right side of the figure below to produce the double-stranded structure of DNA. You'll h
(1) When we call someone “pig” or “swine,” we do not mean it as a compliment. (2) But pigs do not deserve to be used as a symbol for an insult. (3) They are pro
Question for Math! I have a 200-point math test coming up, and I don't get the concept of this question, but if somebody is willing to help me out on this quest
what is the principle of foreign policy of Nepal​
you spent $25 at the store. you bought a book for $8.50 and pencils for $.25 each. how many pencils did you buy?