Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python check if variable is iterable

from collections import Iterable

def iterable(obj):
    return isinstance(obj, Iterable)
 
PREVIOUS NEXT
Tagged: #python #check #variable #iterable
ADD COMMENT
Topic
Name
2+6 =