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

Which sentence is unnecessary and could be eliminated without disturbing the flow and information of the paragraph
If Shaniq is consuming 6 pizzas and 8 salads, to increase her total utility should she increase her consumption of pizza and decrease her consumption of salad,
15x-3y≤18 please solve math problem
Find the probability of each outcome if the computer randomly chooses a letter in the word "PROBABILITY." 1. P(the letter b) = 2. P(NOT i) = 3. P(the letter e)
A group of friends shared some chocolates among themselves. They tried taking 10 chocolates each, but found that the last person had only 2 chocolates. When eac
One of the author’s purposes in The Code Book is to explain different types of codebreaking to his readers. Which line best demonstrates this purpose? a theoret
what is (-2,6) and ( 5,13) in slope
help on math aging sry if this is to much middle school question
Help pls thxPoirot believes Hardman.TrueFalse
Help Eli evaluate his applicants based on their mean and median credit scores. A. Valerie has the highest mean score, but Roy has the highest median score. B. D