結果 : get first n digits of a number python