You are here : python_2stringstringmin

string.min() - string

             

The method min() returns the min alphabetical character from the string str.


  • str -- This is the string from which min alphabetical character needs to be returned.


Syntax

min(str)


Example

#!/usr/bin/python

str = "this-is-real-string-example....wow!!!";
print "Min character: " + min(str)

str = "this-is-a-string-example....wow!!!";
print "Min character: " + min(str)


Output / Return Value

When we run above program, it produces following result −


Min character: ! Min character: !


Limitations


Alternatives / See Also


Reference