You can use the min method on a string to get the minimum alphabetical character from the string. You can use it as follows:
>>> min('helloworld') 'd' >>> min(‘TAJMAHAL’) ‘A’
You can use the min method on a string to get the minimum alphabetical character from the string. You can use it as follows:
>>> min('helloworld') 'd' >>> min(‘TAJMAHAL’) ‘A’