You can iterate over keys and corresponding values: for key, value in dict. iteritems(): print key, value.
stackoverflow.com