Friday, 6 September 2013

how to check if the string only contains letters in python

how to check if the string only contains letters in python

I'm trying to check if the string only contains letters, not digit or symbol.
ex) string = 'heLLo' if string is letters: print('it is letters')

No comments:

Post a Comment