Python String | max()
max() is an inbuilt function in Python programming language that returns the highest alphabetical character in a string.
Syntax:
max(string)
Parameter:
max() method takes a string as a parameter
Return value:
Returns a character which is alphabetically the highest character in the string.
Below is the Python implementation of the method max()
# pythin program to demonstrate the use of # max() function # maximum alphabetical character in # "geeks" string = "geeks" print max(string) # maximum alphabetical character in # "raj" string = "raj" print max(string) |
chevron_right
filter_none
Output:
s r
Recommended Posts:
- String slicing in Python to check if a string can become empty by recursive deletion
- Python | Check if given string can be formed by concatenating string elements of list
- Python | Check if string ends with any string in given list
- String slicing in Python to rotate a string
- Python | Check if a given string is binary string or not
- Python | Add one string to another
- Python String | min()
- Python String
- Python string length | len()
- Python String | zfill()
- Python String | count()
- Python String | strip()
- Python String | split()
- String partition() in Python
- Python | Intersection of two String
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to contribute@geeksforgeeks.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.



