>>a_list = range(37)
.... print k, v
....
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable
What 'int' object is this referring to? I'm iterating over a dict, not
an int.
>>list_as_dic t = dict(zip(range( len(a_list)), [str(i) for i in a_list]))
>>for k, v in list_as_dict:
>>for k, v in list_as_dict:
....
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: 'int' object is not iterable
What 'int' object is this referring to? I'm iterating over a dict, not
an int.
Comment