How do you make a list of lists in python3?
<p>So, currently I've created 2 empty <code>list</code>, with length 128 and 64, added numbers into them (just to test it out) and now I'm trying to insert the <code>DirectoryEntries</code> <code>list</code> into the <code>AvailableBlocks</code> <code>list</code>. But when I print the new list out, it just prints <code>None</code>. Is there a way to do this while keeping <code>DirectoryEntries</code> a <code>list</code>?</p>

<pre><code>AvailableBlocks = list() * 128
DirectoryEntries = list() * 64
AvailableBlocks.append(1)
AvailableBlocks.append(2)
print(AvailableBlocks)
DirectoryEntries.append(123)
DirectoryEntries.append(456)
print(DirectoryEntries)
print(AvailableBlocks.insert(0, DirectoryEntries))
</code></pre>

<p>The insert does not return a value.
Try</p>

<pre><code>AvailableBlocks.insert(0, DirectoryEntries)
print(AvailableBlocks)
</code></pre>

<p>and it should work</p>

python list insert python-3.5