About 638,000 results
Open links in new tab
  1. How can I check if character in a string is a letter? (Python)

    Please note that "word character" in programming usually refers to letters and numbers and underscores. This question is actually asking about "letters"; if you need to see if a character is a …

  2. How to check if a string only contains letters? - Stack Overflow

    str.isalpha() is only true if all characters in the string are letters: Return true if all characters in the string are alphabetic and there is at least one character, false otherwise.

  3. c - What is the simplest way of using isdigit () and isalpha ...

    Jan 12, 2017 · I need a brief explanation on how the two commands isdigit() and isalpha() work. Of course, I read online sources before asking the question, but I tried them and couldn't get them to …

  4. python - How to use str.isalpha ()? - Stack Overflow

    May 4, 2020 · How to use str.isalpha ()? Asked 5 years, 3 months ago Modified 5 years, 3 months ago Viewed 2k times

  5. How to use both isalpha( ) and isdigit( ) to filter out what isn't a ...

    Nov 19, 2020 · How to use both isalpha ( ) and isdigit ( ) to filter out what isn't a letter or digit? Asked 5 years ago Modified 2 years, 3 months ago Viewed 1k times

  6. isalpha python function won't consider spaces - Stack Overflow

    isalpha python function won't consider spaces Asked 11 years, 11 months ago Modified 11 years, 11 months ago Viewed 28k times

  7. python - Why "ǃ".isalpha () is True but "!".isalpha () is False ...

    Jun 24, 2021 · 0 From docs: str.isalpha() Return True if all characters in the string are alphabetic and there is at least one character, False otherwise. Alphabetic characters are those characters defined …

  8. Python: is isalnum () the same as isalpha with isdigit?

    Jun 11, 2016 · 7 There are cases when both isalpha and isdigit returns False, but isalnum returns True. So isalnum is not just a combination of the other two.

  9. How do I check isalpha() for only the first 5 characters of a string?

    Jul 3, 2021 · I want to validate a PAN card whose first 5 characters are alphabets, the next 4 are numbers and the last character is an alphabet again. I can't use isalnum() because I want to check …

  10. Passing an array through "isalpha" through a loop - Stack Overflow

    Feb 13, 2017 · For this, the idea I have in mind is to pass an entire array through the isalpha function by using a loop which passes each character at a time. The idea makes logical sense but I am having …