Guest User

Untitled

a guest
Jan 7th, 2012
51
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.11 KB | None | 0 0
  1. >>>
  2. >>> def rev(s):
  3.     if s == '':
  4.         return ''
  5.     return s[-1] + rev(s[:-1])
  6.  
  7. >>> print rev('blah')
  8. halb
  9. >>>
Advertisement
Add Comment
Please, Sign In to add comment