Python - Comma after a number within a tuple, what does it do?
zzz = ((123,)) + (456,) print(zzz) #outputs (123, 456) Aside from preventing mathematical evaluations, are there any other purpose for having the commas in line 1?
it makes it a tuple. otherwise itd just be a number in some parenthesis. try stuff out