Longest Substring in Alphabetical Order, Python

preview_player
Показать описание
Assume 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. Please use s = 'azcbobobegghakl' to test your codes. Your program should print

Longest substring in alphabetical order is: beggh
Рекомендации по теме
Комментарии
Автор

You should be a teacher. I spent hours looking online for help to do something like this and everyone else is making it more complicated or not answering my question. Thanks!

dillonpershyn
Автор

thank you so much for explaining this. however, i have some questions. i would appreciate if i could hop on a zoom call with you sometime

emmaasoh