If the wordlists is a list, you cannot access the list using "( )" but use "[ ]" for accessing the elements of the list. So, replace those lines with the following code:
print worldlists[len(words)]
worldlists[len(words)].append(words)
IIf you want to become a pro in Python, you can check out this Python Course by Intellipaat that offers instructor-led training, hands-on assignments, and certification.