Question: Activity 5: Write a program called favorite.py that asks the user to enter a color name. If the color entered happens to be your favorite

 Activity 5: Write a program called favorite.py that asks the user

Activity 5: Write a program called favorite.py that asks the user to enter a color name. If the color entered happens to be your favorite color, print a message "We have the same favorite color!". Otherwise, do not print any response. (Be very careful with punctuation in this program. The if clause must end with a colon, or python will complain.) # copy and paste your favorite.py here Notice that to check whether your program works corectly, you will now have to run it at least twice, entering colors that test both outcomes. Now add one statement to your program that will cause it to print "Goodbye!" just before it ends, regardless of the color entered. Obviously, you also want to test your program to make sure it works. # copy and paste your whole program here

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!