I know how to find the highest number in a set but i want to know how to get the variable name of that number.
Here is my code:
number1 = 1
number2 = 4
number3 = 3
largest = max(number1,number2,number3)
It prints “4” but i want it to print “number2” instead. How can I accomplish this?