Question: Given the user inputs, complete a program that does the following tasks: Define a list, my_list, containing the user inputs: my_flower1, my flower2, and


 Given the user inputs, complete a program that does the following tasks:  Define a list, my_list, containing

Given the user inputs, complete a program that does the following tasks: Define a list, my_list, containing the user inputs: my_flower1, my flower2, and my_flower3 in the same orde Define a list, your_list, containing the user inputs, your_flower1 and your_flower2, in the same order. Define a list, our_list, by concatenating my_list and your list. Append the user input, their flower, to the end of our_list. . Replace my_flower2 in our list with their_flower. Remove the first occurrence of their_flower from our_list without using index(). Remove the second element of our_list. Observe the output of each print statement carefully to understand what was done by each task of the program. Ex: If the input is: rose peony lily rose daisy aster the output is Activat

Step by Step Solution

3.38 Rating (154 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

User inputs myflower1 rose myflower2 peony myflower3 lily yourflower1 rose yourflower2 daisy theirfl... View full answer

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!