-
-
Save IndhumathyChelliah/88bf08c7edede7aab962f3890fedd423 to your computer and use it in GitHub Desktop.
This file contains 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
t5=reversed("hello") | |
#returns an iterator object | |
print (t5)#Output:<reversed object at 0x0124E610> | |
#iterator object is given as iterable | |
t6=tuple(t5) | |
print (t6)#Output:('o', 'l', 'l', 'e', 'h') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment