Python String | min ()



Syntax :

min(string)

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

Return value:

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

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

# Python program for demonstrations of using
# min () function

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

string = "geeks"  

print ( min (string))

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

string = "raj"  

print ( min (string))

Exit:

 ea