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

What is the eqation to 7 + x = 14 3/4
PLEASE HELP FAST! :) What are cultural groups? What are cultural regions?
The average speeds of gas molecules in cylinders A, B, C, and D are 0.01 m/s, 0.005 m/s, 0.1 m/s, and 0.5 m/s, respectively. Which cylinder contains gas that is
Which of the following words is an adverb? and become swiftly with
what are two equivalent fractions?
how to do -7x-3x+2=8x-8
Which is considered the best type of advertising for an early childhood program? A. Word of mouth B. Posters C. News papers D. Telephone book
The most accepted theory regarding the make-up of living things is the _____. organismal theory cell theory chromosomal theory
A compound sentence contains?
Steam engines were used in factories, transportation, and communication. a. True b. False