Created
January 8, 2020 22:46
-
-
Save Abdelkrim/5b5c7b642350b1aa4be7a5c5059f613d to your computer and use it in GitHub Desktop.
Python : Reverse a string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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