check iterable python

Do you want to know the information about “check iterable python”. If yes, you’re in the correct post.

check iterable python

from collections import Iterable

def iterable(obj):
    return isinstance(obj, Iterable)
hasattr(myObj, '__iter__')

Conclusion

I hope this article helps you to know about “check iterable python”. If you have any questions regarding this post please let us know via the comment section. Share this article with your friends & family via social networks.

Hi, I'm Ranjith a full-time Blogger, YouTuber, Affiliate Marketer, & founder of Coder Diksha. Here, I post about programming to help developers.

Share on:

Leave a Comment