Python No special “ Iterative type ”, So we need to use collections In the library Iterable Determine whether an object can be iterated .
from collections.abc import Iterable
print(isinstance([1,2,3,4],Iterable))
print(isinstance(1234,Iterable))
Output :
True
False