How to solve this question? (Python)
I'm stuck with a question related to Python. The question is... ------------------------------------------------------------------------------------------------------------- s ='fgsgebgwtegvberwhttrjyjjklsme' # s is a string of lower case characters. "Write a program that prints the longest substring of s in which the letters occur in alphabetical order. For example, if s = 'azcbobobegghakl', then your program should print, >>>Longest substring in alphabetical order is: beggh In the case of the case of ties, print the first substring. For example, if s = 'abcbcd', then your program should print, >>> Longest substring in alphabetical order is: abc ------------------------------------------------------------------------------------------------------------- The most difficult thing from this question was that I have to compare length .. :( Above was the question. And actually I want some instruction or conception that I need to know to solve this question! Thank you for reading :):):) Have a nice day:) !!!