Used 'for key, value in dict.items()' syntax in first dictionary example.