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


#1


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.


#2
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.


#3

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