結果 : how to write power function in python