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