Question: fruit Write a shell (text-based) program, called fruit py, that asks the user What is your favorite fruit?. If the user answers banana or lemon
fruit Write a shell (text-based) program, called fruit py, that asks the user "What is your favorite fruit?". If the user answers "banana" or "lemon (all lowercase), then the program should print "Indeed, yellow fruit are the best!". The program should always print "Fruit is good for you." at the end. Below is an example of a user who typed "lemon" Ps C:lusersissivaDesktop> python fruit.py What is your favorite fruit? lemon Indeed, yellow fruit are the best! Fruit is good for you. Ps C:\usersissiva\Desktop> Below is an example of a user who typed "orange" Ps c:\users ssiva \Desktop> python fruit.py What is your favorite fruit? orange Fruit is good for you. PS C:\Usersissiva\Desktop> Submit the file fruit.py when done
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
