What's the difference between these 2 statements?
ahmedt at gmail.com
ahmedt at gmail.com
Wed Apr 20 15:32:45 EDT 2005
s[len(s):-1:-1] yields an empty list !
Test code :
s = "12345"
print s[len(s)::-1] -> prints "54321"
print s[len(s):-1:-1] -> prints "" (nothing)
More information about the Python-list
mailing list