The min() method returns the min alphabetical character from the string str.
Following is the syntax for min() method −
str − This is the string from which min alphabetical character needs to be returned.
This method returns the max alphabetical character from the string str.
The following example shows the usage of min() method.
#!/usr/bin/python3 str = "www.tutorialspoint.com" print ("Min character: " + min(str)) str = "TUTORIALSPOINT" print ("Min character: " + min(str))
When we run above program, it produces the following result −
Min character: . Min character: A