Check if the length of the list parameter parts equals two.

Make sure to type len(parts).