Question: this code is still wrong my_flower1 = input() my_flower2 = input() my_flower3 = input() your_flower1 = input() your_flower2 = input() their_flower = input() my_list =
this code is still wrong my_flower1 = input() my_flower2 = input() my_flower3 = input() your_flower1 = input() your_flower2 = input() their_flower = input() my_list = [my_flower1, my_flower2, my_flower3] your_list = [your_flower1, your_flower2] our_list = my_list + your_list print(our_list) our_list.append(their_flower) print(our_list) our_list[1] = their_flower print(our_list) for i in our_list: if i==their_flower: our_list.remove(i) break print(our_list) our_list.pop(2) print(our_list)
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
