Create a Python script that takes a list of strings as an input and prints the length of each string in the list.
words = ['dog', 'cat', 'spring', 'summer']
words = ['dog', 'cat', 'spring', 'summer']
for word in words:
    print(len(word))