def min(*args, **kwargs):
key=kwargs.get('key')
if len(args)==1:
result = sorted(args[0], key=key, reverse=False)[0]
else:
result = sorted(args, key=key,reverse=False)[0]
return result
def max(*args, **kwargs):
key = kwargs.get('key')
if len(args)==1:
print("111")
result = sorted(args[0], key=key, reverse=True)[0]
else:
result = sorted(args,key=key, reverse=True)[0]
return result
key=kwargs.get('key')
if len(args)==1:
result = sorted(args[0], key=key, reverse=False)[0]
else:
result = sorted(args, key=key,reverse=False)[0]
return result
def max(*args, **kwargs):
key = kwargs.get('key')
if len(args)==1:
print("111")
result = sorted(args[0], key=key, reverse=True)[0]
else:
result = sorted(args,key=key, reverse=True)[0]
return result