same func in python will not generate wrong answer when parameter change