I'm relatively new to Python and I was interested in finding out the simplest way to create an enumeration.
The best I've found is something like:
(APPLE, BANANA, WALRUS) = range(3)
Which sets APPLE to 0, BANANA to 1, etc.
But I'm wondering if there's a simpler way.