Can we print inside a function with a return in python? : I wonder if I can print a message inside a #python function that already returns a value? 
would that print aprear when I call it from the main programme or I'll just get the value returned?
for exemple :

    def test(x,y)
        if x>y :
            print('x is bigger then y')
            return x
        else:
            print('y is bigger then x')
            return y

Thanx for helping in advence