loop in array in python

Hi suppose in python I have a list(or array, or tuple, not sure the difference)
How do I loop inside the size of array.
The pseudo code is:

a=["d","e","f"]
for i = 1 to dim(a)
   print a
end

How to find the dimension in python?
Also, anyone has a handbook to suggest so I can borrow from library

>>> a=["d","e","f"]
>>> len(a)
3
>>> for x in a:
...     print x
... 
d
e
f

If you're looking for a python tutorial, they have one @ The Python Tutorial — Python 3.11.1 documentation

Regards,
Alister