Python String | Maximum()

Syntax :

max(string)

Parameter:
The max () method takes a string as a parameter

Return value:

Returns a character which is alphabetically the highest character in the string.

Below is the implementation of the max () method in Python.

# Pythin program for demonstrations of using
# max () function

 
# maximum alphabetic character in
# & quot; geeks & quot;

string = "geeks"  

print max < / code> (string)

 
# maximum alphabetic character in
# & quot; Raj & quot;

string = "raj"  

print max (string)

Exit :

 sr