• phoyd
  • >
  • Tutorials
  • >
  • CLI
  • >
  • Menu
  • >
  • Summary

Menu - Summary

[Back] <- - + - -> [Menu]

You have now developed a Menu system using Python.
The prototype had three main options (a, b, c) as well as an exit option.
But the number of options can easily be changed for a particular solution.
Note that, although possible, more than about seven options is difficult to read.

The options (a, b, c) can be any characters - usually letters or numbers.
The current version only recognises "a". A capital "A" is ignored.
The code can be changed to accept either "a" or "A".

The option descriptions (AAA, BBB, CCC) would be replaced by appropriate text.

It is also possible to create a hierarchy with sub-menus.