Categorized: Python

Python Datatypes

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…

Comments

Nothing to see here yet. Start things off, why don't you?

What do you think about that?

Elsewhere in the empire: Home, Blog, APOD