Skip to content

Instantly share code, notes, and snippets.

@huozhong-in
Created September 21, 2018 08:20
Show Gist options
  • Save huozhong-in/21e625f303e5f32456833c1dc260815c to your computer and use it in GitHub Desktop.
Save huozhong-in/21e625f303e5f32456833c1dc260815c to your computer and use it in GitHub Desktop.
reverse a string
' '.join(map(lambda x: x[::-1], 'I have a dream'.split(' ')))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment