Tuesday, February 10, 2015

More With Lists

 The following program demonstrates manipulations with a list. In this example you can see how to add a score and remove a score from the list. The list can also be sorted.

What is the difference between a tuple and a list? The main difference between a tuple and list is that a list is mutable and a tuple is immutable. Since tuples are immutable they can be stored in a way that makes them faster than using lists.

No comments:

Post a Comment