Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Last active July 16, 2020 01:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/ce878ff3bffe9283f6457e5a5bfb00b1 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/ce878ff3bffe9283f6457e5a5bfb00b1 to your computer and use it in GitHub Desktop.
#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