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

Mercantilism is the economic idea that In order for a country to prosper, its exports must exceed its imports. O In order for a country to prosper, its imports
Describe the set ​(C-B) union A in words.
If there were to be 8 boys and 13 girls at a party and the host wanted each to be given exactly the same number of candies that could be bought in packages cont
The figure below is a net for a triangular pyramid. 8.66 m 10 m If all the triangles are equilateral, what is the surface area of the pyramid, in square meters?
What are the goals of network security and what sorts of attacks do you need to defend against
Write two synonyms for this word transform
Notice-and-comment rulemaking involves regulators noticing a situation that lacks a rule, commenting on it, and then issuing a rule. True False
When listing the levels of organization in organisms from least complex to most complex, which level is just below organs in complexity? O cell organism organ s
The mass of the beaker and the liquid was 1037 g. The mass of the empty beaker was 350 g. What was the mass of the liquid?
if ratio x and y form a proportion and ratio y and z form a proportion, do ratio x and ratio x form a proportion?