Iterating over dictionaries using for loops,list(d.items())