Enigmatic Naming of Lists in Python
<p>I am writing a program in python and I am using a dictionary. I need to create an empty list for each key in the dictionary, and each list needs to have the same name as the key. The keys are user entered, which is why I can't just make a list in the conventional way.
This was the first thing I tried</p>

<pre><code>a = {"x":1, "y":2, "z"3}
list(a.keys())
a.pop() = []   # This raises an error
</code></pre>

<p>I also tried to make the lists when the dictionary was being created, but this did not work either:</p>

<pre><code>a = {}
b = input("INPUT1")
c = input("INPUT2")
a[b] = c
b = []
</code></pre>

<p>This created a list with the name "b" rather than whatever the user entered. Please help!!</p>
