python is case sensitive language. so better to write python IsAlpha function like isalpha in lower case without any spelling mistake.
AttributeError: ‘str’ object has no attribute ‘isDigit
For above error as well try to write function in lower case without any spelling mistake like “isdigit”