max()
Built-in FunctionPython 2.0+Beginner
Returns the largest item in an iterable or among arguments
Quick Info
- Documentation
- Official Docs
- Python Version
- 2.0+
Learn by Difficulty
Quick Example
python
print(max(1, 5, 3)) print(max([10, 20, 5, 15])) print(max("hello"))
max() is a built-in function that returns the largest item in an iterable or among arguments.
Try in PlaygroundTags
builtinfunctioncorecomparisonmath