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

John invested N$ 20 000 on 1/06/2009 at 9% p.a. interest compounded monthly a) What is the value of the investment by 1/06/2019? b) If he only takes the intere
Which of the following makes w/8-13>-6not true A 96 B 80 C 72 D 56
Use the definitions for the sets given below to determine whether each statement is true or false: A = { x ∈ Z: x is an integer multiple of 3 } B = { x ∈ Z: x i
1. abdominus rectus a they oppose the biceps 2. forearm extensors b. part of the quadriceps group 3. gastrocnemius c. often called the buttocks 4. Achilles tend
One hypothesis that has been proposed regarding the origin of life suggests that life evolved from an "RNA world" to todays "DNA world." Considering the propert
Choose one of the following topics. Write an eight sentence paragraph that fully develops the topic. A. Following instructions is very important. B. Job trainin
Cuál es el significado y la razón de escribir entre comillas una palabra
What skills and characteristics do you think would be necessary for a lighting board operator to be successful?
Least to greatest 3.72 3.729 43/8 67/20
Classify the following triangle. Check all that apply. A. Right B. Isosceles I C. Scalene O D. Acute E. Equilateral OF. Obtuse I need help!!! I’m on apex