i get the following error: "list index out of range"

to me this error means that (0, len(x)) is too great a range since the list "n" contains 3 elements the 0 to len(x) would represent 0 to element 3, because there are 3 elements. but the range 0 to 3 is the range for a 4 element list. so i tried (0, len(x)-1) but ot the same error message. i ve searched the forum but no joy. so what am i doing wrong here?

```
n = [3, 5, 7]
def print_list(x):
for i in range(0, len(x)):
print x[i]
print_list(n)
```