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)) |
chevron_right
filter_none
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 | Check if string ends with any string in given list
- String slicing in Python to rotate a string
- Python | Check if a given string is binary string or not
- Python | Add one string to another
- Python String | max()
- Python String
- Python String | isidentifier()
- casefold() string in Python
- String rindex() in python
- string.punctuation in Python
- string capitalize() in Python
- Python | Intersection of two String
- Python | String translate()
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.



