YouTip LogoYouTip

Python3 String Max

# Python3.x Python3 max() Method [![Image 3: Python3 Strings](#) Python3 Strings](#) * * * ## Description The max() method returns the largest alphabetical character in a string. ## Syntax The syntax for the max() method is: max(str) ## Parameters * str -- The string. ## Return Value Returns the largest alphabetical character in the string. ## Example The following example demonstrates the usage of the max() function: #!/usr/bin/python3 str = "tutorial"print ("Maximum character: " + max(str)) The output of the above example is: Maximum character: u * * Python3 Strings](#)
← Python3 String RindexPython3 String Istitle β†’