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

with detailed solving calculate the kinetic energy gained or lost in the collision between two 2.0 kg bodies A and B when the velocities before collision is UA=
What is dominate allele
Find the product: −6(−3/2 )(10) A) −60 B) −90 C) 60 D) 90
Which form of municipal government best completes the title of the chart?
during Mississippian period many Native American groups that a large field where they primarily grew A. Rice B.maize C.cotton D.soybeans
PlEASE HELP FAST I WILL MAKE YOU THE BRAINLIEST EASY ANSWER First you will find out how fast the seafloor is moving away from the ridge on one side. Use a calc
can someone give me some facts of the panama canal?
How to prove God is real?
A leaky faucet is losing water and is filling a 8-gallon bucket every 25 hours.At this rate,how many gallons of water will the faucet leak in 13 hours?
which compound has dipolar intermolecular forces?