Write a function min that has three str parameters and returns the smallest. (Smallest in the sense of coming first alphabetically, not in the sense of "shortest".)

Write a function min that has three str parameters and returns the smallest. (Smallest in the sense of coming first alphabetically, not in the sense of "shortest".)



def min(str1,str2,str3):
if str1<str2 and str2<str3:
return str1
elif str2<str1 and str1<str3:
return str2
else:
return str3


Learn More :