I tried this exercise from “46 Simple Python Exercise” and I don’t want to use if -else conditions, but max () method. I see that there is a way to pass more arguments that is *args, so I used it.
But when compile my code, the result is None.
I think that there is something wrong with *args.
Can you help me?
def max_of_three(*args): print(max(args)) if __name__ == "__main__": x = int(input()) y = int(input()) z = int(input()) print("The largest number is:",max_of_three(x,y,z))