結果 : python logic building problems