Check if the length of the list parameter parts equals two.
parts
Make sure to type len(parts).
len(parts)