I\'d like to code autocompletion in Linux terminal. The code should work as follows.
It has a list of strings (e.g. \"hello, \"hi\", \"how are you\", \"goodbye\", \"
To enable autocomplete in a Python shell, type this:
import rlcompleter, readline readline.parse_and_bind('tab:complete')
(thanks to http://blog.e-shell.org/221)