> For the complete documentation index, see [llms.txt](https://bangla-python-book.gitbook.io/python-programming-language/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://bangla-python-book.gitbook.io/python-programming-language/control-structures/undefined-1/enumerate.md).

# enumerate()

enumerate() হচ্ছে পাইথনের একটি বিল্ট ইন ফাংশন, এটি এক ধরনের জেনারেটর যা কোন ইটারেবল অবজেক্ট কাউন্ট করে এবং সে কাউন্টারের ভ্যালু রিটার্ন করে যাকে enumerate অবজেক্ট ও বলা হয়। enumerate() ফাংশনে দুটি প্যারামিটার পাস করা যায়। প্রথমটি হল যে কোন Iterable অবজেক্ট (যেমন, নাম্বার, স্ট্রিং, লিস্ট, টুপল ইত্যাদি) এবং দ্বিতীয়টি হল Start ভ্যালু,যেখান থেকে কাউন্টিং শুরু করা হবে।

```
enumerate(iterable_object,start_value)
```

```python
>>> items = [ 'apple','orange','mango']
>>> enu_Items = enumerate(items)
>>> print(type(enu_Items))
<class 'enumerate'>
>>> print (enu_Items) 
<enumerate object at 0x7f3a4321e380>
>>> print (list(enu_Items))                            # converting to list
[(0, 'apple'), (1, 'orange'), (2, 'mango')]
>>> enu_Items = enumerate(items, 10)                   # changing the default counter by passing START parameter
>>> print (list(enu_Items))  
[(10, 'apple'), (11, 'orange'), (12, 'mango')]
>>> Months = ["Jan","Feb","Mar","April","May","June"]  # use a for loop over a collection
>>> for i, m in enumerate (Months):
...     print(i,m)
... 
0 Jan
1 Feb
2 Mar
3 April
4 May
5 June
```
