def iterable(obj):
 try:
  iter(obj)
 except TypeError:
  return False
 return True

def iterable ( obj ) : try : iter ( obj ) except TypeError : return False return True
return true if *obj* is iterable .