On 2016-04-11 01:33, MRAB wrote: > A one-element tuple can be written as: > > >>> ('hello',) > ('hello',) > > As has been said already, it's the comma that makes the tuple. The > parentheses are often needed to avoid ambiguity.
Except when the comma *doesn't* make the tuple: >>> t = () >>> type(t) <class 'tuple'> ;-) -tkc -- https://mail.python.org/mailman/listinfo/python-list