min() — Easy Examples
Returns the smallest item in an iterable or among arguments
Basic min() usage
Simple demonstration of the min() built-in function.
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.
min() with different inputs
Calling min() with various argument types.
python
# More min() examples print("min() is a Python built-in function") print(f"Type: {type(min)}")
min() accepts different types of arguments and produces corresponding results.
Want to try these examples interactively?
Open Easy Playground