So I have a list like:
L = ['a', 'b', 'c', 'd']
and
for x in L:
print(x)
returns
'a'
'b'
'c'
'd'
but I would like to see
1. 'a'
2. 'b'
3. 'c'
4. 'd'
I would like to have this work for any size the list might grow or shrink to. I have tried a few things but I am very new to programming and nothing has worked.