def is_abcedarian(word):
    i = 0
while i < len(word) - 1:
    if word[i + 1] < word[i]:
        return False
i = i + 1
return True

def start():
    lines = []
words = []
for line in open('word_test1.txt'):
    lines.append(line.strip())
numlines = len(lines)
count = 0
for word in lines[:]:
    if is_abcedearian(word):
        print(word)
count = count + 1
print(count)
Подсчет абеседарианских слов в списке: Python