vendredi 3 juillet 2015

Why is my function skipping the If statement?

It accepts the inputs ok, but doesn't go on to the if statement. Can I not define a variable in a function argument?

def maximum(one = int(input("Enter first Number: ")),
            two = int(input("Enter second Number: "))):  
    if one > two:  
        return one  

    else:  
        return two


maximum()

Aucun commentaire:

Enregistrer un commentaire