The way you have set up the call to your method/function, you are actually calling print
on the method itself i.e. print(max(812309)).
This is incorrect, as the way the compiler reads it is that it will attempt to print the method rather than a given input (which is the usual practice -- e.g. a string, int, etc).
EDIT: As @kindall mentioned, my explanation here is inaccurate. The compiler is not printing the method, but rather the return value of the method (in this case, no value is being returned so None
is printed. My mistake!)
Judging by your description, you want to print out your numbers after having been sorted from your method. However, your method is ALREADY doing the printing; so just call the method by itself and you'll get your expected result.