Question: 3 . Write a program that does the following: a . Creates a sequence that has the names of seven fruits. b . Asks the

3. Write a program that does the following:
a. Creates a sequence that has the names of seven fruits.
b. Asks the user for a sentence.
c. Tells the user how many fruits are in that sentence.
d. Displays a list of fruits in the sentence.
e. Finds and replaces one instance of a fruit in the sentence with Brussel Sprouts.
f. Displays the new sentence to the user.
4. The program should be able to find fruits whether they are capitalized or not. To do this use the .lower() method. Do not just put both upper and lower case versions in the fruit list.
5. Program should look something like this:

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 Programming Questions!