結果 : python how to avoid for loops