Python - Extract Strings with Successive Alphabets in Alphabetical Order
Given a string list, extract list which has any succession of characters as they occur in alphabetical order. Input : test_list = ['gfg', 'ij', 'best', 'for', 'geeks'] Output : ['ij', 'gfg', 'best'] Explanation : i-j, f-g, s-t are consecutive pairs. Input : test_list = ['gf1g', 'in', 'besht', 'for', 'geeks'] Output : [] Explanation : No consecutive