Error : Traceback (most recent call last): File “”, line 8, in TypeError: ‘int’ object is not iterable It works when I convert list object to string but not working in int. Answer Because indexing will give back the object and not an iterable container here. unless you call it like this: zip([a[i]], [a[j]], [a[k]]).