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.

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.



def min(int1,int2):

if int1<int2:

return int1

elif int2<int1:

return int2

else:

return int1 or int2


Learn More :