Friday, April 12, 2013

string argument expansion


>>> def variadac(*a): print a
...
>>> variadac(*"abc")
('a', 'b', 'c')

Just a specific example of strings being useful in all the same ways as lists/tuples.