I need to write function, that check if word is alphabetical, for example
my_function('Hello!')
>> True
my_function('How')
>> True
my_function('F!@K')
>> False
my_function('</html>')
>> False
I have no idea. I really bad in re lib.
begin_searcher = re.compile(r'[\w\-]')
end_searcher = re.compile(r'[\w\-]+[!-?]')
I can’t use non-standard libs
A non regex solution