Python Periksa apakah variabelnya dapat

from collections import Iterable

def iterable(obj):
    return isinstance(obj, Iterable)
2Bowls