Question: Need help use PYTHON please Given the user inputs, complete a program that does the following tasks: - Define a list, my_list, containing the user
Given the user inputs, complete a program that does the following tasks: - Define a list, my_list, containing the user inputs. my_flower7, my_flower2, and my_flower3 in the same order. - Define a list, your_list, containing the user inputs, your_flower 1 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 index0. - 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: ['rose', 'peony', '1ily', 'rose', 'daisy'] ['rose', 'peony', 'Iily', 'rose', 'daisy', 'aster'] ['rose', 'aster', '111.', 'rose', 'daisy', 'aster'] ['rose', '11ly', 'rose', 'dalsy', 'aster'] , 'rose', 'daisy', 'aster'] ['rose', 'rose
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
