fork download
  1. st = (("d", 3), ("a", 3), ("c", 1))
  2. item = max(st, key=lambda v: (v[1], -ord(v[0])))
  3. print(item[0])
Success #stdin #stdout 0.02s 9936KB
stdin
Standard input is empty
stdout
a