Is len O(n) or O(1) ?

process circularfunc at gmail.com
Thu Sep 11 16:21:46 EDT 2008


ok but if len is O(1) then it doesnt matter? compared to

if not lista:
        return []

i mean.



More information about the Python-list mailing list