Simple comparison
Input
find_max(2, 5)
Output
5
5 is greater than 2, so the function returns 5.
Full lesson preview
Return the larger of two numbers (int or float). If they are equal, return that value.
Problem statement
Task
Examples
Input
find_max(2, 5)
Output
5
5 is greater than 2, so the function returns 5.
Input format
Output format
Constraints
Samples
Input
find_max(-3, -7)
Output
-3
Between -3 and -7, -3 is greater.