I ran the following code in Python3.5.2 and got the corresponding output
>>> example = ['a','b','c','d','e']
>>> enumerate(example)
<enumerate object at 0x7f0211ea2360>
I'm unable to understand what is the meaning of this output.Why didn't the output come like this
(0, 'a'), (1, 'b'), (2, 'c'), (3, 'd'), (4, 'e')
When i used a list to contain these tuples the output was satisfactory
>>> list(enumerate(example))
[(0, 'a'), (1, 'b'), (2, 'c'), (3, 'd'), (4, 'e')]
Note : I'm a newbie in python and when i posted this question i didn't know about map function so i didn't refer this question Why does map return a map object instead of a list in Python 3?