Learning Python
Mar. 29th, 2003 09:49 pmI'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.