Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

check if variable is iterable python

from collections.abc import Iterable

data = []

if isinstance(data, Iterable):
     pass # data is iterable
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #check #variable #iterable #python
ADD COMMENT
Topic
Name
7+3 =