Junior — Senior
Console operation selection menu
livecode
Task condition
Implement a Python program that:
- displays a list of available commands with their numbers;
- prompts the user to enter the number of the chosen command;
- performs the corresponding action based on the entered number (the actual logic can be replaced with simple
printstatements). Example menu:
Choose a command:
- Show list of users
- Add a new user
- Delete a user
- Exit
Enter the command number:
After input, the program should perform the action corresponding to the selected item.