How to create a tuple of an empty tuple in Python?
<p>How can I create a tuple consisting of just an empty tuple, i.e. <code>(())</code>? I have tried <code>tuple(tuple())</code>, <code>tuple(tuple(tuple()))</code>, <code>tuple([])</code> and <code>tuple(tuple([]))</code> which all gave me <code>()</code>.</p>

<p>The reason that I use such a thing is as follows: Assume you have <code>n</code> bags with <code>m</code> items. To represent a list of items in a bag, I use a <code>tuple</code> of length <code>n</code> where each element of that tuple is a representative for a bag. A bag might be empty, which is labeled by <code>()</code>. Now, at some initial point, I have just one bag with empty items!</p>