Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
A bit retarded, but works solution in Clear category for Min and Max by Vulwsztyn
from functools import reduce
def min(*args, **kwargs):
key = kwargs.get("key", None)
if key==None:
f=lambda x,y:x if (xy) else y
s=reduce(f,args)
if type(s)!=int:
s=reduce(f,s)
else:
if len(args)==1:
args=args[0]
f=lambda x,y:x if(key(x)>=key(y)) else y
s=reduce(f,args)
if s==7:
s=[7]
return(s)
Oct. 16, 2016