I am trying to return the variable having the maximum value. But if the variable have the common values than the max() is returning only one value. Her eis the what I got:
>>> d = {'x1':2,'x2':2}
>>> max(d, key=d.get)
'x2'
As one can see the values of both variables is 2, the max() is returning the the output as one variable only and not both the larger values.
Kindly, let me know how max() can return multiple maximum values?