Skip to content

Instantly share code, notes, and snippets.

@Abdelkrim
Created January 8, 2020 22:46
Show Gist options
  • Save Abdelkrim/5b5c7b642350b1aa4be7a5c5059f613d to your computer and use it in GitHub Desktop.
Save Abdelkrim/5b5c7b642350b1aa4be7a5c5059f613d to your computer and use it in GitHub Desktop.
Python : Reverse a string
language = "python"
reversed_language = language[::-1]
print(reversed_language) # nohtyp
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment