Question: # Get user inputs myFlower 1 = input ( ) myFlower 2 = input ( ) myFlower 3 = input ( ) yourFlower 1 =

# Get user inputs myFlower1= input() myFlower2= input() myFlower3= input() yourFlower1= input() yourFlower2= input() theirFlower = input() # Define mylist containing myFlower1, myFlower2, and myFlower3 in that order mylist =[myFlower1, myFlower2, myFlower3] print(mylist) # Define yourlist containing yourFlower1 and yourFlower2 in that order yourlist =[yourFlower1, yourFlower2] print(yourlist) # Define ourlist by concatenating mylist and yourlist ourlist = mylist + yourlist # Append theirFlower to the end of ourlist ourlist.append(theirFlower) print(ourlist) # Replace myFlower2 in ourlist with theirFlower ourlist[1]= theirFlower print(ourlist) # Remove the third element of ourlist del ourlist[2] print(ourlist)

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 Programming Questions!