Hi, Would someone explain how str[::-1] work? I'm new to Python and I only saw so far the str[begin:end] notation. What is the second colon?
Thanks, Laszlo > Here is a simplistic version that doesn't use fancy math: > >>>> str(24) > '24' >>>> str(24)[::-1] > '42' >>>> int(str(24)[::-1]) > 42 -- http://mail.python.org/mailman/listinfo/python-list