So I am trying to do this:
tuple([1])
The output I expect is :
(1)
However, I got this:
(1,)
But if I do this:
tuple([1,2])
It works perfectly! like this:
(1,2)
This is so weird that I don't know why the tuple function cause this result.
Please help me to fix it.
(1)
is integer; while(1,)
is tuple. – Eryn