On May 14, 5:44 pm, kk <maymunbe...@gmail.com> wrote:
> Btw my main problem is that when I assign the function to 'b' variable
> I only get the last key from the dictionary. Sorry about that I forgot
> to mention the main issue.


You're creating a new dictionary with each iteration of your loop, use
d[k] = v syntax instead.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to