def test_iterable(value):
 try:
  iter(value)
 except TypeError:
  return False
 return True

def test_iterable ( value ) : try : iter ( value ) except TypeError : return False return True
check if its possible to iterate over an object .