"Miguel E." <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I've been (self) studying Python for the past two months and I have had > no background in OOP whatsoever. > > I was able to write an interactive program that randomly selects an item > from a list. From a Main Menu, the user has the option to add items to > an empty list, show the list, run the random selector, and of course > quit the program. The program also complains if a user tries to add an > item that is already in the list prompting the user to enter another > item.
Do you really need the items sorted? I strongly suspect that a set would work better. Much easier to randomly add, delete, and check membership. Terry Jan Reedy -- http://mail.python.org/mailman/listinfo/python-list