Computer Science, asked by shyamlisingh8, 1 year ago

define python iteration?how to use? with examples.

Answers

Answered by sonylaku
0
Any time you use a loop, explicit or implicit, to go over a group of items, that is iteration. ... FWIW, if __iter__ isn't defined, an object can still be iterable if itdefines __getitem__. Python's str objects are a notable example.

hay: wrong
Similar questions