>>> def reverse(value): if len(value) > 1: return value[len(value) - 1] + reverse(value[:len(value) - 1]) else: return value[0] >>> print reverse('!dlroW ,olleH')Hello, World!
Post a Comment
No comments:
Post a Comment