Im currently assigning a number of elements to a dictionary via list based elements.
Such as :
z = mylist
query_dict = {"HOSTNAME":z[0],"TTL":z[1],"CLASS":z[2],"TYPE":z[3],"DETAILS":z[4]}
However I wondered if there is a slightly more elegant approach to this, such as the way you can assign variables from a list :
a,b,c,d,e = z
Thanks,