Feb-05-2017, 02:58 PM
You are getting an error, because you are telling Python to generate an error, so Python says "okee dokee here's an error"
If you don't want that, try something like:
If you don't want that, try something like:
elif not cat.isalpha(): print("not alpha") breakJust a matter of semantics, but your response "Argument should be a string", is not really accurate, since at the beginning of your function you are converting every thing to a string.
If it ain't broke, I just haven't gotten to it yet.
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition
OS: Windows 10, openSuse 42.3, freeBSD 11, Raspian "Stretch"
Python 3.6.5, IDE: PyCharm 2018 Community Edition