I see you ask for a number from 1 to 5, but you're not doing any checking. In fact, the numbers -4 through 0 don't raise an exception and delete a (possibly unintended fruit from the list).