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

PythonServer Side ProgrammingProgramming

You can use the max method on a string to get the maximum alphabetical character from the string. You can use it as follows:

>>> max('helloworld')
'w'
>>>max(‘stripedzebra’)
‘z’
raja
Updated on 30-Sep-2019 06:24:34

Advertisements