consider this example?
p = [1,2,3,4], (1,2,3), set([1,2,3])]
instead of checking for each types like
for x in p:
if isinstance(x, list):
xxxxx
elif isinstance(x, tuple):
xxxxxx
elif isinstance(x, set):
xxxxxxx
Is there some equivalent for the following:
for element in something:
if isinstance(x, iterable):
do something