enumerate()
is a useful function to make an iterator when used with a for
loop. Here we explain different ways of using
enumerate()
using a python list. enumerate()
acts as an iterator yielding a tuple (index,element)
when applied on a list.
Tag: methods
Append and Extend python list
Difference between Append()
and Extend()
when acting on a list