Question: write a function in python stringSorted which takes a string and return true if the string is sorted alphabetically. stringSorted( ) returns true stringSorted(a) returns
write a function in python stringSorted which takes a string and return true if the string is sorted alphabetically.
stringSorted(" ") returns true
stringSorted("a") returns true
stringSorted("cda") returns false
stringSorted("Aa") returns true
stringSorted("abbccdef") returns true
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
