Question: 3 . 1 7 LAB: List basicsGiven the user inputs, complete a program that does the following tasks:Define a list, my _ list, containing the

3.17 LAB: List basicsGiven 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 order.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.

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!