>>> a = "this is a string"
>>> a = a.split(" ") # a is converted to a list of strings.
>>> print a
['this', 'is', 'a', 'string']
Jesse Silverman wrote:I do hate seeing code that actually re-purposes variables to hold different unrelated types at different times tho
Python seems to be married to the idea that programming should be fun and easy and look normal. Perl used to think it should be fun and easy and look weird.