>> dct = {1:3, 2:1} >> len(str(dct)) 12 >> print(str(dct)) {1: 31, 2: 0} >> l = ["all","colours"] >> len(str(l)) 18