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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!