Tuesday, April 5, 2011

Python Sorting

So... sort() sorts an interable in place, whereas sorted() returns a sorted copy. This also works on an iterable of objects! So, here's the run-down.

No comments:

Post a Comment