check letter in string python code example
Example 1: python check if character is letter
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
Example 2: python check if string in string
if "blah" not in somestring:
continue
>>> 'A'.isalpha()
True
>>> '1'.isalpha()
False
if "blah" not in somestring:
continue