Python shows different data type for seemingly similar inputs.
While assigning a value to a variable like this, I get a tuple:
>>> x = 1, >>> type(x) >>> <class 'tuple'>
However when I do the same thing in the following way, it shows a different data type:
>>> type(1,) >>> <class 'int'>
How and why do these two differ from each other?