a_dict = {'apple':'red', 'grass':'green', 'sky':'blue'} for key in a_dict: print key # for the keys print a_dict[key] # for the values