結果 : check number of digits in python