🌐
W3Schools
w3schools.com › python › ref_func_enumerate.asp
Python enumerate() Function
The enumerate() function adds a counter as the key of the enumerate object. ... Coding fundamentals as bite-sized lessons and challenges. ... If you want to use W3Schools services as an educational institution, team or enterprise, send us an e-mail: sales@w3schools.com · If you want to report an error, or if you want to make a suggestion, send us an e-mail: help@w3schools.com · HTML Tutorial CSS Tutorial JavaScript Tutorial How To Tutorial SQL Tutorial Python Tutorial W3.CSS Tutorial Bootstrap Tutorial PHP Tutorial Java Tutorial C++ Tutorial jQuery Tutorial
🌐
GeeksforGeeks
geeksforgeeks.org › python › enumerate-in-python
Enumerate() in Python - GeeksforGeeks
The enumerate() function in Python is used to iterate over an iterable while keeping track of both the index and the value. It returns pairs in the form (index, element).
Published: May 8, 2026
Discussions

Enumerate()
In short: enumerate adds a counter to an iterable and you can give an optional parameter (default: 0) where to start to count. Example: letters = ['a', 'b', 'c', 'd', 'e', 'f'] for counter, item in enumerate(letters, start=3): print(counter, item) output: (3, 'a') (4, 'b') (5, 'c') (6, 'd') (7, 'e') (8, 'f') More on reddit.com
🌐 r/learnpython
17
15
November 21, 2018
Hello, a complete novice to python. Can someone explain why to enumerate returns the memory address and the enumerated object?
Because you’re printing the object that you created. You need to iterate through it. From the docs Return an enumerate object Python Docs -Enumerate More on reddit.com
🌐 r/learnpython
6
1
November 21, 2022
How can I use enumerate function in Python? - Stack Overflow
for num, data in enumerate(test_data[:len(test_data)]): I have a code snippet like this. Let's say I have 30 data, in the test data. Is this for loop goes from 0 to 30 or from 0 to 29? More on stackoverflow.com
🌐 stackoverflow.com
[deleted by user]
Thanks for the tutorial! More on reddit.com
🌐 r/learnpython
26
171
March 2, 2022
🌐
Enki
enki.com › post › what-does-enumerate-mean-in-python
Enki | Blog - What Does enumerate Mean in Python
The enumerate() function is a Python tool that allows you to loop through an iterable—like a list, tuple, or string—and have access to both the index and the element itself.
🌐
Python
docs.python.org › 3.7 › library › functions.html
Built-in Functions — Python 3.7.17 documentation
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter'] >>> list(enumerate(seasons)) [(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')] >>> list(enumerate(seasons, start=1)) [(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')] ... The arguments are a string and optional globals and locals. If provided, globals must be a dictionary. If provided, locals can be any mapping object. The expression argument is parsed and evaluated as a Python expression (technically speaking, a condition list) using the globals and locals dictionaries as global and local namespace.
🌐
Real Python
realpython.com › ref › builtin-functions › enumerate
enumerate() | Python’s Built-in Functions – Real Python
The built-in enumerate() function adds a counter to an iterable and returns it as an enumerate object, which can be used directly in loops.
🌐
freeCodeCamp
freecodecamp.org › news › python-enumerate-what-is-the-enumerate-function-in-python
Python enumerate() – What is the Enumerate Function in Python?
June 8, 2022 - The enumerate() function in Python takes in a data collection as a parameter and returns an enumerate object. The enumerate object is returned in a key-value pair format. The key is the corresponding index of each item and the value is the items.
Find elsewhere
🌐
YouTube
youtube.com › watch
How to use Python enumerate() built-in function - YouTube
In this beginner's Python tutorial, you will learn how to use the enumerate() built-in Python function. The enumerate() function creates an index for each it...
Published: July 24, 2020
🌐
Python
docs.python.org › 3 › builtins › functions.html
Built-in functions — Python 3.15.2 documentation
>>> seasons = ['Spring', 'Summer', 'Fall', 'Winter'] >>> list(enumerate(seasons)) [(0, 'Spring'), (1, 'Summer'), (2, 'Fall'), (3, 'Winter')] >>> list(enumerate(seasons, start=1)) [(1, 'Spring'), (2, 'Summer'), (3, 'Fall'), (4, 'Winter')] ... The result of the evaluated expression. ... Syntax errors are reported as exceptions. ... This function executes arbitrary code. Calling it with untrusted user-supplied input will lead to security vulnerabilities. The source argument is parsed and evaluated as a Python expression (technically speaking, an expression list) using the globals and locals mappings as global and local namespace.
🌐
freeCodeCamp
freecodecamp.org › news › what-is-enumerate-in-python
What is enumerate() in Python? Enumeration Example
December 22, 2022 - By Suchandra Datta The enumerate() function is one of the built-in functions in Python. It provides a handy way to access each item in an iterable, along with a count value that specifies the order in which the item was accessed. In this article ...
🌐
Coursera
coursera.org › tutorials › how to enumerate in python: step by step
How to Enumerate in Python: Step by Step | Coursera
February 24, 2023 - You can’t reverse the type of object that the enumerate function returns. However, you can reverse the order by converting the enumerate object into a list or tuple first. You’ll accomplish this by using Python’s list() or tuple() and reversed() functions.
🌐
YouTube
youtube.com › watch
How to Use enumerate() in Python - YouTube
Code available in comment below! This video shows the basics of how to use enumerate() in Python. enumerate() is useful for looping through data structures l...
Published: April 28, 2021
🌐
YouTube
youtube.com › watch
Python enumerate() Function - Visually Explained - YouTube
🔵 Resources & Further Learning- 📒 Practice notebook → https://colab.research.google.com/drive/1s7ZxwIV_SbXFIwPHXy0LbUh5tAYJq2Cp- 📒 Practice notebook solut...
Published: July 16, 2026
🌐
Analytics Vidhya
analyticsvidhya.com › home › python enumerate(): simplify looping with counters
Python enumerate(): Simplify Looping With Counters | Analytics Vidhya
July 12, 2024 - Python’s enumerate() function is a powerful tool that simplifies the process of keeping track of indices when iterating through sequences. By providing both the index and the corresponding element, enumerate() enhances code readability, reduces ...
🌐
Stack Overflow
stackoverflow.com › questions › 70475116 › how-can-i-use-enumerate-function-in-python
How can I use enumerate function in Python? - Stack Overflow
Use with AICopy>>> test_data = [n for n in range(0,30)] >>> for num, data in enumerate(test_data[:len(test_data)]): ... print(num) ...
🌐
YouTube
youtube.com › jayanam
Python Tutorial for Beginners: Enumerate - YouTube
Here is a new Python tutorial, an answer to the request what enumerate is. I show how to use the enumerate function by the example of the shopping list.See m...
Published: January 6, 2019
Views: 6K
🌐
Simplilearn
simplilearn.com › home › resources › software development › an introduction to enumerate in python with syntax and examples
An Introduction to Enumerate in Python with Syntax and Examples
August 24, 2025 - Enumerate is a built-in function in the python library. This tutorial will help you to learn all about enumerate in python with syntax and examples. Start now!
Address: 5851 Legacy Circle, 6th Floor, Plano, TX 75024 United States
🌐
Mimo
mimo.org › glossary › python › enumerate-function
Python enumerate(): Loop with an Index and start=
Use Python enumerate() to loop with a counter and value, set the first index with start, and skip the clumsier range(len()) pattern.