結果 : how to write length function in python