Latest web development tutorials

Python min () method

Python strings Python strings


description

Python min () method returns a string in the smallest letters.

grammar

min () method syntax:

min(str)

parameter

  • str - a string.

return value

Returns a string the smallest letters.

Examples

The following example shows the min () function to use:

#!/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);

Examples of the above output results are as follows:

Min character: !
Min character: !

Python strings Python strings