Here's the code to iterate over the elements of the list and print each element:
```
colors = ['green', 'yellow', 'blue', 'pink']
def linear(colors):
# Iterate the elements of the list
for color in colors:
# Print the current element of the list
print(color)
linear(colors)
```
This will output:
```
green
yellow
blue
pink
```