import pprint a = {'a': 'b', 're': '2'} for x in a: pprint.pprint(x) b = [1, 'a', 5] pprint.pprint(b) print(b[3])