Uzytkownik "Shi Mu" <[EMAIL PROTECTED]> napisal w wiadomosci news:[EMAIL PROTECTED] I have have the following code: >>> a=[3,5,8,0] >>> b={} >>> How I can i assign each item in a as the key in the dictionary b simultaneously? that is, b={3:[],5:[],8:[],0:[]} Thanks!
Other solution: b.fromkeys(a,[]) cheers, Przemek -- http://mail.python.org/mailman/listinfo/python-list