A tuple in python is a sequence of immutable objects. If you know how list works then you can easily understand how tuples in python work. They’re just like lists but they can’t be changed. [Read more…]
Archives for December 2011
Python Lists
The list in python is the most versatile type that contains group of comma-separated items in a square bracket. Each value in a python list is identified by an index. Lists are much more flexible than arrays as they allow us to hold items of different types. [Read more…]