Limiting the size of List and making it Homogeneous
ankitrastogi82 at gmail.com
Fri Jan 13 03:45:24 EST 2006
Is it possible to limit the size of list in python.
I want to make list of 5 elements. How can I achieve this thing in
python. And one more thing can we declare list to store elements of
same type as in c, C++ we can declare an
array which can have 5 elements of type int.
How can I achieve this kind of behavior ?
More information about the Python-list