結果 : iterate through digits of an integer python