Easy Tutorial
❮ Ref Math Radians Python Att List List ❯

Python3 max() Method

Python3 Strings


Description

The max() method returns the largest letter in the string.

Syntax

Syntax for the max() method:

max(str)

Parameters

Return Value

Returns the largest letter in the string.

Example

The following example demonstrates the usage of the max() function:

#!/usr/bin/python3

str = "tutorialpro"
print("Largest character: " + max(str))

The output of the above example is as follows:

Largest character: u

Python3 Strings

❮ Ref Math Radians Python Att List List ❯