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

How is Tom described physically? a. Willowy and slender b. Cruelly built and muscular c. Average build d. Short and insignificant
by converting the percentage to a fraction find 29% of 3950 kg
What is 1+2? I need to know!!
Due at 11:30 PLS HELP
He visto a mucha gente usar "caer mal" para describir una acción como por ejemplo "No hagas eso que me cae mal" y por ende yo también lo he usado de esa forma.
If the sequence of nucleotides along the mRNA molecule is AUGCCGGGAAGACCC, how many amino acids would be in the newly formed protein?
explain how Bluetooth technology is changing health care.
A 4 foot long sandwich is cut j to servings that are each 1/3 foot long. How many servings will there be after the sandwich is cut
10 points + brainliest to first correect answer :) incorrect answers/ answers with no effort will be deleted this is easy im just making sure :) Georgette drew
what is the fraction 1/4 , 2/5 , 1/5 , 2/4