Check alphabetical order¶
Write the function order() that given a string with only
lower case letters, returns True if the letters are in alphabetical
order and False otherwise. Save this function into a
file named check_alphabetical_order.py.
See the following examples:
>>> order('abcdefghij')
True
>>> order('qwerty')
False
Note
More tests are provided in the check_alphabetical_order.txt file.
Solution
A solution of these functions is provided in the
check_alphabetical_order.py