#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 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.
#Ex: if the input is:
#rose
#peony
#lily
#rose
#daisy
#aster
# The Output is
#['rose', 'peony', 'lily', 'rose', 'daisy']
#['rose', 'peony', 'lily', 'rose', 'daisy', 'aster']
#['rose', 'aster', 'lily', 'rose', 'daisy', 'aster']
#['rose', 'lily', 'rose', 'daisy', 'aster']
#['rose', 'rose', 'daisy', 'aster']
#my_list
my_flower1 = input()
my_flower2 = input()
my_flower3 = input()
#your_list
your_flower1 = input()
your_flower2 = input()
their_flower = input()
#Our list, my_list, your_list
my_list = [my_flower1, my_flower2, my_flower3]
your_list = [your_flower1, your_flower2]
# Define our_list by concatenating(join together) my_list and your_list
our_list = my_list + your_list
print(our_list)
#Append their_flower to the end of the list
our_list.append(their_flower)
print(our_list)
#replace my_flower2 in our_list with their_flower
if my_flower2 in our_list:
idx = our_list.index(my_flower2)
our_list[idx] = their_flower
print(our_list)
#Remove the first occurence of their_flower without using index()
if their_flower in our_list:
our_list.remove(their_flower)
print(our_list)
#remove the second element of our_list
del our_list[1]
print(our_list)
To embed this project on your website, copy the following code and paste it into your website's HTML: