def test_iterable(value):
    try:
        iter(value)
    except TypeError:
        return False
    return True
Check if it's possible to iterate over an object.
dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/jinja2/tests.py/test_iterable