結果 : how to create log function in python