Python String | min()
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()
# python program to demonstrate the use of # min() function # minimum alphabetical character in # "geeks" string = "geeks" print(min(string)) # minimum alphabetical character in # "raj" string = "raj" print(min(string)) |
Output:
e a
Recommended Posts:
- Python | Check if given string can be formed by concatenating string elements of list
- String slicing in Python to check if a string can become empty by recursive deletion
- Python | Merge Tuple String List values to String
- Python | Check if string ends with any string in given list
- Python | Sorting string using order defined by another string
- Python | Check if a given string is binary string or not
- Python | Sort each String in String list
- String slicing in Python to rotate a string
- Python String | max()
- Python String
- Python | Add one string to another
- Python String | istitle()
- Python | String rstrip()
- Python String | splitlines()
- Python String | rfind()
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.

