Empty tuples

This leaves us with the problem of how to specify an empty tuple. In actuality the answer is simple, we just use empty parentheses:

>>> e = ()
>>> e
>>> type(e)
<class 'tuple'>
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset