Asked • 03/18/19

Accessing the index in 'for' loops?

How do I access the index itself for a list like the following? ints = [8, 23, 45, 12, 78]When I loop through it using a `for` loop, how do I access the loop index, from 1 to 5 in this case?

2 Answers By Expert Tutors


Reet C. answered • 04/09/19

5 (9)

Computer Engineer With A Passion For Teaching!

Victor C. answered • 03/21/19

5 (170)

Python Programmer and Expert Spanish Tutor

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.


Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.