Python Datatypes

Posted by Trey on March 05, 2008

dictionary = {'a':'apple', 'b':'banana', 'c':'cat'}
    # Associative array / hash / array with non-numeric indices.
list = ['a', 'b', 'c']
    # Normal array with 0-based indices.
tuple = (’a', ‘b’, ‘c’)
    # Read-only array.

More…