結果 : how to stop a function from printing none in python