subject

3.5 Lesson practice quiz: Edhesive Question 5 color = input ("what color? ")

if (color=="green"):

print("correct")

else:

print("Nope")

elif(color=="red"):

print ("correct")

What happens when it runs?

Answer is

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

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 18:00
What is the first view you place in your drawing?
Answers: 1
question
Computers and Technology, 22.06.2019 19:00
If your accelerator suddenly gets stuck what should you do
Answers: 2
question
Computers and Technology, 23.06.2019 00:30
Quick pl which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
Facial expressions and gestures are examples of messages.
Answers: 3
You know the right answer?
3.5 Lesson practice quiz: Edhesive Question 5 color = input ("what color? ")

if (color...
Questions
question
Mathematics, 11.02.2021 07:10
question
Mathematics, 11.02.2021 07:10
question
Mathematics, 11.02.2021 07:10
question
Mathematics, 11.02.2021 07:10
question
Chemistry, 11.02.2021 07:10
question
English, 11.02.2021 07:10