結果 : how to write sigmoid function in python