What's the difference between (1,) and (1) in Python
Try this to convince yourself:
>>> type((1))
<type 'int'>
>>> type((1,))
<type 'tuple'>
The following identity checks may provide you with further insight into the differences:
>>> (1) is 1
True
>>> (1,) is 1
False
The comma makes it a tuple. (1) is just the same as 1 wrapped in delimiters.