It also may be wise to do this validation up-front. Hint: consider using the ```all``` builtin with a generator expression.