Find Minimum of Two Numbers
Find Minimum of Two Numbers
Tags: Basics
Credit: CodingChallenge
Difficulty: Beginner
Type: Text
Category: Practice
Time Allowed: 5 s
Description:
Write a function that takes two numbers and returns the minimum of the two using built-in functions. This problem is designed to help you practice using built-in functions for finding minimum values
. The function should accept two parameters and return the minimum value.
Constraints:
- The inputs will be
integers
orfloats
. - The function should
return
the minimum of the two numbers.
Example:
- Input:
5, 3
- Output:
3
Test Case | Input | Expected Output |
---|---|---|
1 | [5, 3] | 3 |
2 | [2, 4] | 2 |
3 | [7, 7] | 7 |
4 | [-1, -5] | -5 |
5 | [3.5, 2.5] | 2.5 |
6 | [0, 0] | 0 |
Leave a Comment
Please login to leave a comment.