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 17:40
Consider the simple 3-station assembly line illustrated below, where the 2 machines at station 1 are parallel, i.e., the product only needs to go through one of the 2 machines before proceeding to station 2.what is the throughput time of this process?
Answers: 2
question
Computers and Technology, 24.06.2019 22:10
How many different ways are there to order the eight jobs in the queue so that job usu comes somewhere before cdp in the queue (although not necessarily immediately before) and cdp comes somewhere before bbd (again, not necessarily immediately before)?
Answers: 1
question
Computers and Technology, 24.06.2019 23:00
Systolic pressure is a measure of blood pressure when the ventricles relax and fil with blood ture or false
Answers: 1
question
Computers and Technology, 24.06.2019 23:30
Which example can be considered master data in an organization? a. holiday list b. dress code c. employee information d. recreational activities
Answers: 1
You know the right answer?
3.5 Lesson practice quiz: Edhesive Question 5 color = input ("what color? ")

if (color...
Questions
question
Mathematics, 03.02.2021 04:10
question
History, 03.02.2021 04:10
question
Computers and Technology, 03.02.2021 04:10
question
Mathematics, 03.02.2021 04:10
question
Mathematics, 03.02.2021 04:10
question
History, 03.02.2021 04:10
question
English, 03.02.2021 04:10
Questions on the website: 13722367