結果 : head and tail function in python example