Generate a Python program to filter a list of strings to only return words that have 7 or more characters.
words = ['Apple', 'Banana', 'Cabbage', 'Cucumber']
words = ['Apple', 'Banana', 'Cabbage', 'Cucumber']

def filter_list(words):
  filtered_list = []

  for word in words:
    if len(word) >= 7:
      filtered_list.append(word)

  return filtered_list