Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

if var is iterable python

from collections.abc import Iterable

data = []

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