robbat2: (Default)
robbat2 ([personal profile] robbat2) wrote2003-03-29 09:49 pm

Learning Python

I'm learning a bit of python now, and I am came accross this example:
>>> freshfruit = ['  banana', '  loganberry ', 'passion fruit  ']
>>> [weapon.strip() for weapon in freshfruit]
['banana', 'loganberry', 'passion fruit']
Somebody has as good sense of humor.