Select one option from list

Sami Viitanen none at
Thu Aug 7 15:32:14 CEST 2003


Any ideas is there a script that asks user to select one option of list,

Example: list = ['aaa', 'bbb', 'ccc']

Script acts something like this:

Select one option:
[1] aaa
[2] bbb
[3] ccc
Enter your selection:

Thanks in advance!

More information about the Python-list mailing list