The Wayback Machine - https://web.archive.org/web/20240213201348/https://www.geeksforgeeks.org/python-string-min/
Open In App
Related Articles

Python String | min()

Improve
Improve
Improve
Like Article
Like
Save Article
Save
Report issue
Report
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

Don't miss your chance to ride the wave of the data revolution! Every industry is scaling new heights by tapping into the power of data. Sharpen your skills and become a part of the hottest trend in the 21st century.

Dive into the future of technology - explore the Complete Machine Learning and Data Science Program by GeeksforGeeks and stay ahead of the curve.


Last Updated : 07 Jan, 2018
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads
Complete Tutorials