Lesson 5 - "Check Yourself...Some More"


In this lesson, why do we not place the term 'empty_string' in the .isalpha function, but do so for the length function?

Replace this line with your code.

if len(original) > 0 and original.isalpha():

The empty string will fail the first conditional. It will fail the second, too, but that is moot.


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.