My code for caesar.py receives errors when it checks if the plaintext is alphabetical, lowercase, or uppercase. The terminal says:

'str' object has no attribute 'isaplha'

Am I using the isalpha function correctly? Is there an issue with how I am including its library? Thanks in advance.

My code:

// edited out per academic honesty
  • 1
    Typo? Look at it very carefully if plaintext[letter].isaplha(): Commented Feb 16, 2017 at 19:06

1 Answer 1


Check your spelling! Sometimes it's the simple things ;)


You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .