0 out of 464 challenges solved
Write a Python function `minimum(a, b)` that takes two numbers as input and returns the smaller of the two. If both numbers are equal, return either of them. #### Example Usage ```python [main.nopy] print(minimum(1, 2)) # Output: 1 print(minimum(-5, -4)) # Output: -5 print(minimum(0, 0)) # Output: 0 ``` #### Requirements - The function should handle both positive and negative numbers. - The function should work correctly when the two numbers are equal.
def minimum(a, b):
"""
Returns the smaller of two numbers.
Parameters:
a (int or float): The first number.
b (int or float): The second number.
Returns:
int or float: The smaller of the two numbers.
"""
# Write your code here
pass