Sobes.tech
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 print statements). Example menu:

Choose a command:

  1. Show list of users
  2. Add a new user
  3. Delete a user
  4. Exit

Enter the command number:

After input, the program should perform the action corresponding to the selected item.