Last active
December 3, 2019 19:09
-
-
Save ChaitanyaBaweja/1600895929ef9f7c7859f3376d4538c7 to your computer and use it in GitHub Desktop.
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
# Reversing a string using slicing | |
my_string = "ABCDE" | |
reversed_string = my_string[::-1] | |
print(reversed_string) | |
# Output | |
# EDCBA |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment