Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

3.12 LAB: List basics Given the user inputs, complete a program that does the following tasis - Deline a list, myy list, containing the user

image text in transcribed
image text in transcribed
3.12 LAB: List basics Given the user inputs, complete a program that does the following tasis - Deline a list, myy list, containing the user inputs my. flower1, my fower2, and my_fowers in the sarme order. - Define o list your_list, containing the user inputs, your_fioweri and your_flowen, in the same order. - Define a list, our list, by cancatenating my, lst 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 oocurrence of their flower from our Jist without using indexo. - Remove the second element of our_lis? Observe the output of each print statement carefully to understand what was done by each task of the program. Ex. If the input is: rabe peony lily rose datny adter the oitput is: main.py Load default template... 1 my_flower1 = input( ) 2 my_flower2 = input( ) 3 my_flower 3 = input( ) 4 5 your_flower 1= input( ) 6 your_flower 2= input ) 7 their_flower = input () 9 \# 1. Tooo: Define my_list containing my_flower1, my_flower2, and my_flower3 11 in that order 12 13 \# 2. TOo0: Define your_list containing your_flower 1 and your_flower2 14 \# in that order 15 Run your program as often as you'd like, before submitting for grading. Below, type any needed input values in the first box, then click Run program and observe the program's output in the second box

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introductory Relational Database Design For Business With Microsoft Access

Authors: Jonathan Eckstein, Bonnie R. Schultz

1st Edition

1119329418, 978-1119329411

More Books

Students also viewed these Databases questions