What is the difference between
t=(1,3,4,5,6)
print(t)
andt4 = tuple(1,2,3,4,5) // This one shows error [TypeError: tuple() takes at most 1 argument (5 given)]
What is the difference between
t=(1,3,4,5,6)
print(t)
andt4 = tuple(1,2,3,4,5) // This one shows error [TypeError: tuple() takes at most 1 argument (5 given)]
Hi Swaraj,
The first one i.e. t4 = (1,2,3,4) is a valid syntax for tuple declaration. That is why the first one is running fine and not the second one.
Regards