Can you provide a code snippet in Python that takes a list of strings as input and sorts them based on their length?
["Hello","World!","Good","Morning"]
words = ["Hello","World!","Good","Morning"]

words.sort(key=len)

print(words)