Define a function called min that takes two parameters containing integer values and returns the smaller integer of the two. If they have equal value, return either one.

LANGUAGE:  PYTHON

CHALLENGE:

Define a function called min that takes two parameters containing integer values and returns the smaller integer of the two.
If they have equal value, return either one.

SOLUTION:


def min(int1,int2):
if int1<int2:
    return int1
elif int2<int1:
    return int2
else:
    return int1 or int2