how to clear up a List in python?

vbgunz vbgunz at gmail.com
Thu May 25 19:02:32 CEST 2006


> No, he'll have 100 items in the slice... 300, 301,... 399 that's 100 items.

you're right, sorry. [300:400] would return 100 items but the item at
index 400 would not return. I suggested if he wanted it to try
[300:401] as the last slice index is excluded from the return.

Thanks for that :)




More information about the Python-list mailing list