adspace


Which objects are iterated in python?

Answer Posted / Shyam Narayan Sonkar

Any Python object that supports iteration (has an __iter__() method) can be iterated. This includes lists, tuples, dictionaries, sets, strings, and even custom user-defined classes.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

No New Questions to Answer in this Category !!    You can

Post New Questions

Answer Questions in Different Category