結果 : iterate through digits of a number python