Question: how do i make a system which asks user to enter number of operations it wanna perform. and for each operation entered perform one of

how do i make a system which asks user to enter number of operations it wanna perform. and for each operation entered perform one of the operations such as remove name, add name or max length name.
i tried to do it and this is what i have so far plz let me know what i am doing wrong.
how do i make a system which asks user to enter number
so like this is how i wnat my output to be (Everything in between "" is the input entered by user) :
How many operations would u like to peeform? (add, remove, max) "3"
Enter an operation: "add Maniac"
Maniac added
Enter an operation: "remove Sana"
Sana removed
Enter an operation: "max"
Max name in list is Zenish

steps = int(input("How many steps do you want to perform?")), names = [] for step in range(steps): names.append(str(input("Enter the command")>> for command in names: for add in command.split(): if 'add' in add: print(command) for commands in names: for remove in commands.split(): if 'remove' in remove: print(commands)

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!