Answers for "check if value is iterable python"

1

python check if variable is iterable

from collections import Iterable

def iterable(obj):
    return isinstance(obj, Iterable)
Posted by: Guest on September-13-2020
1

check iterable python

hasattr(myObj, '__iter__')
Posted by: Guest on July-03-2021

Code answers related to "check if value is iterable python"

Python Answers by Framework

Browse Popular Code Answers by Language