Mega Code Archive

 
Categories / Python / Dictionary
 

For loop through the dictionary keys

table = {'Python':  'Guido van Rossum',           'Perl':    'Larry Wall',           'Tcl':     'John Ousterhout' } for lang in table.keys():       print lang, '\t', table[lang]