ptn <[EMAIL PROTECTED]> wrote in news:1182997438.541012.54100 @o61g2000hsh.googlegroups.com:
> >>>> def rev(x): > mylist = [] > for char in x: > mylist.append(char) > mylist.reverse() > for letter in mylist: > print letter > > However, compare the incredible difference in clarity and elegance > between that and: > >> >>> print "\n".join("spam"[::-1]) > OK, maybe I'm missing the point here as I'm new to Python. The first one seems clearer to me. What am I missing? Martin -- http://mail.python.org/mailman/listinfo/python-list