Latest web development tutorials

Python3 min () method

Python3 string Python3 string


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/python3

str = "w3big";
print ("最小字符: " + min(str));

Examples of the above output results are as follows:

最小字符: b

Python3 string Python3 string