How to get min alphabetical character from the string in Python?

PythonServer Side ProgrammingProgramming

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’
raja
Updated on 30-Sep-2019 06:20:15

Advertisements