Best method for a menu in a command line program?

rantingrick rantingrick at gmail.com
Wed Nov 3 22:03:33 EDT 2010


On Nov 3, 8:19 pm, braden faulkner <brf... at gmail.com> wrote:

> Just wondering if there is another or more efficient way I should be doing it?


I would move the input inside the respective methods or functions,
short of that, what is more efficient than a conditional... nothing,
and it reads very intuitively. Sure you could throw all the funcs into
a dict and it may clean up a long winded conditional, however then you
have to make a trade. So Zero Sum at that point.



More information about the Python-list mailing list