Assigning Elements/Keys to a Dictionary
<p>Im currently assigning a number of elements to a dictionary via list based elements.</p>

<p>Such as :</p>

<pre><code>z = mylist
query_dict = {"HOSTNAME":z[0],"TTL":z[1],"CLASS":z[2],"TYPE":z[3],"DETAILS":z[4]}
</code></pre>

<p>However I wondered if there is a slightly more elegant approach to this, such as the way you can assign variables from a list :</p>

<pre><code>a,b,c,d,e = z
</code></pre>

<p>Thanks,</p>
