Answers for "how to check if string has any alphabetical python"

0

check if string contains alphabets python

import re
print(re.search('[a-zA-Z]', "anything"))
Posted by: Guest on April-23-2021
0

checking if a string is in alphabetical order in python

def isInAlphabeticalOrder(word):
    for i in range(len(word) - 1):
        if word[i] > word[i + 1]:
            return False
    return True
Posted by: Guest on September-04-2021

Code answers related to "how to check if string has any alphabetical python"

Python Answers by Framework

Browse Popular Code Answers by Language