Problem scenario
You have a Python program that is evaluating one-character strings of punctuation as "True" when tested by the .isalpha method. What should you do?
Solution
Remember to use "()" after .isalpha().
A Technical I.T./DevOps Blog
Problem scenario
You have a Python program that is evaluating one-character strings of punctuation as "True" when tested by the .isalpha method. What should you do?
Solution
Remember to use "()" after .isalpha().