maddygabbard529 maddygabbard529
  • 01-11-2021
  • Computers and Technology
contestada

Consider the following code: color = input("What color? ") if (color == "green"):   print ("Correct") else:   print ("Nope") elif (color == "red"):   print ("Correct") What happens when it is run?

Respuesta :

severaja1 severaja1
  • 09-11-2021

Answer:

There is an error, the else should be after the elif

Explanation:

Answer Link

Otras preguntas

Describe what happens when blood in capillaries flows past cells
Propane and oxygen react according to the equation: C₃H₈(g) + 5O₂(g) → 3CO₂(g) + 4H₂O(g). How many grams of water can be produced from the complete combustion o
if a pH of water is 5.3 then 4.3 is it 1.0 less acidic 1.0 less basic
The net force acting on a 50 kg crate is 0 N. What is the crate's acceleration
what derived unit is usually used to express the density of liquids?
The skeletal system does all of the following EXCEPT (A) support. (B) transport. (C) protect. (D) digest. (E) store.
A person sees a ball and kicks it, in part because of actions of the nervous system. Using the parts of the nervous system listed bellow, describe the path of n
THE EXPRESSION (TAN THETA) (CSC THETA) IS EQUAL TO?
Henry can ride his bike 23 miles in 2 hours. The store is six miles away. About hoe long should it take Henry to ride his bike to the store?
Solve the equation log 6x - 3 = -4