How do I determine whether a string is of letter characters or digits?

Published: Wednesday, Dec 26, 2007 Last modified: Thursday, Nov 14, 2024

Via #python

16:50 < hendry> How do I determine whether a string is of letter  character or digits?

16:50 < deltab> s.isdigit()

16:51 < deltab> and s.isalpha()