Question: erminal Help o python Fundamentals Module _ 2 . 1 _ Practice _ Python _ Fundamentalsipynb Module 2 2 Required code Python Findomentalapyob ts Module

erminal Help
o python Fundamentals
Module_2.1_Practice_Python_Fundamentalsipynb
Module22Required code Python Findomentalapyob ts
Module_2.2Required_Code_Python_Fundamentalsipynb
Code + Markdown |D| Run All -= Clear All Outputs || Outline cdots
Select Kernel
Module 2 Required Coding Activity
Introduction to Python (Unit 2) Fundamentals
Be sure to complete all tutorials and practice prior to attempting this activity.
Important Assignment Requirements
NOIE This program requires creating a function using def and return, using print output, input, iff, in keywords, cappend(), cpop(). oremove() list methods. Be sure to include your full name in the prompts. See the example input below for more detail.
Program: list-o-matic
This program takes string input and checks if that string is in a list of strings
if string is in the list it removes the first instance from list
if string is not in the list the input gets appended to the list
if the string is empty then the last item is popped from the list
if the list becomes empty the program ends
if the user enters "quit" then the program ends
program has 2 parts
program filow which can be modfied to ask for a specific type of item. This is the programmers choice. Add a list of fish, trees, books, movies, songs... your choice,
list-o-matic Function which takes arguments of a string and a list. The function modfies the list and returns a message as seen belove.
Start
list_o_matic
Cell 1 of 3
90@ F T-stom:
425 PM
7/15r2024
 erminal Help o python Fundamentals Module_2.1_Practice_Python_Fundamentalsipynb Module22Required code Python Findomentalapyob ts

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