結果 : how to do two pointers in python