On Friday 26 May 2006 11:50, Georg Brandl wrote: > This is actually a nice idea, because it's even a more nonintuitive > answer for Python newbies posting to c.l.py asking how to reverse > a string <wink>
Even better: "123"*-1 We'd get to explain: - what the "*-" operator is all about, and - why we'd use it with a string and an int. I see possibilities here. :-) -Fred -- Fred L. Drake, Jr. <fdrake at acm.org> _______________________________________________ Python-Dev mailing list Python-Dev@python.org http://mail.python.org/mailman/listinfo/python-dev Unsubscribe: http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com