Limiting the size of List and making it Homogeneous
ankit
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.
C, C++:
int intarr[5]
How can I achieve this kind of behavior ?
Thanks
More information about the Python-list
mailing list