DEV Community

Onaolapo-11
Onaolapo-11

Posted on

enumerate() function is used as a counter in python when iterating data

Day 80 [January 11th, 2025]

I need to buckle down, as I'm still lagging on day day 3 & 4 goals, "Day 3-4: Control structures (if-else, loops)", as well as day 5 (and 6) goals, "Day 5-6: Functions and modules", and Day 7 target (exercises) (Meta AI, personal communication, August 8, 2025). If I haven't covered this, I can't make progress on day 8 - 79 goals.

Goals:
As extracted from the 'Python for Software Development' textbook by Halvorsen (n.d.):

  • Plotting in Python ✅
  • Subplots✅
  • Exercises✅
  • If ... Else
  • Arrays
  • For Loops
  • Nested
  • For Loops
  • While Loops
  • Exercises
  • Creating Functions in Python - Introduction
  • Functions with multiple return values
  • Exercises
  • Creating Classes in Python
  • The init () Function
  • Exercises
  • Creating Python Modules
  • Exercises

Notes:
Python for Data Science, AI & Development Course (IBM) (Santarcangelo, n.d.):
Module 3: Python Programming Fundamentals

enumerate() function is used as a counter in python when iterating data, enabling to monitor the item and its position in the list (Geeksforgeeks, 2025; Santarcangelo, n.d.; Meta AI, personal communication, January 11, 2025).

Summary:
enumerate() function is used as a counter in python when iterating data

References:

  1. Geeksforgeeks. (2025, September 12). Enumerate() in python.
    https://www.geeksforgeeks.org/python/enumerate-in-python/

  2. Halvorsen, H. (n.d.). Python. https://halvorsen.blog/documents/programming/python/python.php#python4

  3. Santarcangelo, J. (n.d.). Python for data science, AI & development [MOOC]. Coursera. https://coursera.org/learn/python-for-applied-data-science-ai

Top comments (0)