Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Last active July 16, 2020 00:19
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/f24f284364f12d5bb83b40b8b1a2df2d to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/f24f284364f12d5bb83b40b8b1a2df2d to your computer and use it in GitHub Desktop.
t1=(1,)
print(t1)#Output: (1,)
print (type(t1))#Output:<class 'tuple'>
t2=('hello',)
print(t2)#Output: ('hello',)
print (type(t2))#Output:<class 'tuple'>
t3=1,
print (t3)#Output:(1,)
print (type(t3))#Output:<class 'tuple'>
t4="hello",
print (t4)#Output:('hello',)
print (type(t4))#Output:<class 'tuple'>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment