I just see:
You already know about max(). Why would you need to know the name of the variable? It makes not sense. A variable name is no information/data. This means you have some information that you didn’t told us. I guess your are looking for something else (a dict maybe).
I hope it helps
this is pretty confusing. if the OP could state the purpose we could possibly recommend a logical way to accomplish what he’s looking for. back in my early days of coding i would have tried something like this thinking that it was the only way to possibly get a variable in to another function. or maybe he’s trying to construct new code at runtime. both of those ALWAYS have alternatives.
as far as this request goes, if he’s looking for just a text representation of his variable’s name, a dictionary, sorted() and the operator module would be one way:
import operator
# Create new dictionary for variable names and values
new_dict = {"number1":1, "number2":4, "number3":3}
# A list of tuples sorted by value
sorted_new_dict = sorted(new_dict.items(), key=operator.itemgetter(1))
# Get largest variable([<i>last tuple</i>][<i>first value</i>])
largest = sorted_new_dict[-1][0]