...
Then improve your class by giving it a __str__
method that prints your class in a better way than what happened above. You will need to use format characters like %s. At the end of the script, print the list of DataLine objects - they should look better now.
Finally, add a __cmp__
method to your class that compares two objects. Objects should be compared based on the fifth number in the list. Then, before you print your list, sort it. When you print it, make sure the fifth number in each object gets bigger.
...