Hi, I'm happy to help you,
You can use the list method ".index()", that returns that index of the element inside the parentheses. (see the code below). If you already understand how for loops work, you can see I used "i" inside the parentheses.
NOTE: Python uses 0-based indexing. That means that printing the index of those five elements, using the code below, will display: 0, 1, 2, 3, 4
If you need your output to actually be "1,2,3,4,5" instead. What simple modification would you do to that code? Let me know if you have any questions.
ints = [8, 23, 45, 12, 78]
for i in ints:
print(ints.index(i))