Easy Tutorial
❮ Python Att List List Python Os Chdir ❯

Python3 min() Method

Python3 Strings


Description

The Python min() method returns the smallest letter in the string.

Syntax

Syntax for the min() method:

min(str)

Parameters

Return Value

Returns the smallest letter in the string.

Example

The following example demonstrates the use of the min() function:

#!/usr/bin/python3

str = "tutorialpro";
print ("Smallest character: " + min(str));

The output of the above example is as follows:

Smallest character: b

Python3 Strings

❮ Python Att List List Python Os Chdir ❯