Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created July 16, 2020 02:02
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/c8f7bf625fc8e59f13ae98e6bc508472 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/c8f7bf625fc8e59f13ae98e6bc508472 to your computer and use it in GitHub Desktop.
t='red','blue','green'
print (t)#Output:('red', 'blue', 'green')
print (type(t))#Output:<class 'tuple'>
t1=1,2,3
print (t1)#Output:(1, 2, 3)
print (type(t1))#Output:<class 'tuple'>
t2=[1,2],3,'a'
print (t2)#Output:([1, 2], 3, 'a')
print (type(t2))#Output:<class 'tuple'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment