Python String | min()
Last Updated :
07 Jan, 2018
min() is an inbuilt function in Python programming language that returns the minimum alphabetical character in a string.
Syntax:
min(string)
Parameter:
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 Python implementation of the method min()
string = "geeks"
print ( min (string))
string = "raj"
print ( min (string))
|
Output:
e
a
Like Article
Suggest improvement
Share your thoughts in the comments
Please Login to comment...