-
-
Save IndhumathyChelliah/f24f284364f12d5bb83b40b8b1a2df2d 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
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