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, 24.06.2019 05:30
How do i get rid of my member ship for
Answers: 2
question
Computers and Technology, 24.06.2019 10:10
Which view in a presentation program displays a split window showing the slide in the upper half and a blank space in the lower half?
Answers: 1
question
Computers and Technology, 24.06.2019 17:30
Click on the tab on the ribbon to open the backstage view. file view insert review
Answers: 1
question
Computers and Technology, 24.06.2019 17:40
Pseudocode pld #6, pg. 117 start// declarations// number numbertoguess// number myguess; numbertoguess = 92// while myguess ! = numbertoguess// output " guess an integer number between 1 and 100"// input myguess// if (myguess == numbertoguess)// output "you guessed the correct number"// else// output "the number you guessed was incorrect. try again! "// end if// end while// output " for playing the guessing game. have a great day! "// stop
Answers: 3
You know the right answer?
3.5 Lesson practice quiz: Edhesive Question 5 color = input ("what color? ")

if (color...
Questions
question
Mathematics, 09.09.2020 07:01
Questions on the website: 13722363