Answers for "checking if a string is in alphabetical order in python"

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 "checking if a string is in alphabetical order in python"

Python Answers by Framework

Browse Popular Code Answers by Language