Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Got stuck here and i would appreciate it very much if someone could help me out, i cant seem to figure out how to do
Got stuck here and i would appreciate it very much if someone could help me out, i cant seem to figure out how to do things after this..
here is what i have so far
list_one = []
welcome_msg = int(input("How many steps should we run?" ))
for i in range(welcome_msg): msg_input = input("Enter a command: ") list_one.append(msg_input) print(list_one)
I want it to look like this, and here is some instructions too
For each step do one of the three things here: 1. "add [name]" -add name to list 2. "remove [name]" remove name from list a. if the name is not in the list, inform the user and don't crash 3. "max" output the max length name, if there is a tie, then output the last name in lexicographic order. (you are not permitted to use .sort) or sorted) for this, instead consider using the
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started