printing out elements in list

micklee74 at hotmail.com micklee74 at hotmail.com
Mon May 8 03:44:39 EDT 2006


hi

i have a list with contents like this
alist = ['>QWER' , 'askfhs', '>REWR' ,'sfsdf' , '>FGDG',
'sdfsdgffdgfdg' ]

how can i "convert" this list into a dictionary such that

dictionary = { '>QWER':'askfhs' , '>REWR' : 'sfsdf' , '>FGDG',
'sdfsdgffdgfdg' }

thanks




More information about the Python-list mailing list