-
-
Save IndhumathyChelliah/ce878ff3bffe9283f6457e5a5bfb00b1 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
#iterable is given as 'string' | |
t=tuple("hello") | |
print (t)#Output:('h', 'e', 'l', 'l', 'o') | |
#iterable is given as list | |
t1=tuple([1,2,3]) | |
print (t1)#Output:(1, 2, 3) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment