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

An owner's interest or value in property, over and above the mortgage debt, is known as a. Equity b. Capital c. Profit d. Interest
Quadrupled root of 81 raised to -2
C2H4 + O2 --> CO2 + H20 (balance first) If 9.7 mol of CO2 are produced, how many moles of O2 were reacted?
b3wiqfegbgihgkbw ihkdb hevrhikjbc jnfjejnfjoenouhnflkanc
The triangle on the right is scaled copy of the triangle on the left
whats adolf hitlers style of ruling
Let f(x,y)=ln(x+y-1). (a) Evaluate f (e,5) 1. (b) Evaluate f e, 1. (c) Find and sketch the domain of f. (d) Find the range of f.
In line 11 of the poem, what does the word hailed mean in context?
Given the following molecular formula C3 H4 how many total atoms are in this molecule?
E.B. Henderson is typically referred to as "The Father of Black Basketball" a. True b. False