>>> from itt_digits import * >>> nombre_digits(371) 3 >>> nombre_digits(80365) 5 >>> separa_cap(371) '1-7-3' >>> separa_cap(80365) '5-6-3-0-8' >>> separa(371) '3-7-1' >>> separa(80365) '8-0-3-6-5' >>> suma_digits(371) 11 >>> suma_digits(80365) 22 >>> digit_max_min(371) (7, 1) >>> digit_max_min(80365) (8, 0) >>> te_digit(371, 7) True >>> te_digit(371, 2) False >>> te_digit(80365, 6) True >>> te_digit(80365, 9) False >>> compta_digit(1114, 1) 3 >>> compta_digit(1114, 4) 1 >>> compta_digit(1114, 2) 0 >>> dos_digits_o_mes(1114, 1) True >>> dos_digits_o_mes(1114, 4) False >>> dos_digits_o_mes(1114, 2) False >>> max_digit_pot(3791) (9, 1) >>> max_digit_pot(80365) (8, 4) >>> max_digit_pot(1035) (5, 0) >>> min_digit_pot(3792) (2, 0) >>> min_digit_pot(80365) (0, 3) >>> min_digit_pot(2135) (1, 2) >>> digit_pot(3792, 0) 2 >>> digit_pot(3792, 1) 9 >>> digit_pot(3792, 2) 7 >>> cap_i_cua(121) True >>> cap_i_cua(1221) True >>> cap_i_cua(1234) False >>> rep_pot(6754) '6*10^3 + 7*10^2 + 5*10^1 + 4' >>> rep_pot(600009) '6*10^5 + 9' >>> rep_pot(4500980876009) '4*10^12 + 5*10^11 + 9*10^8 + 8*10^7 + 8*10^5 + 7*10^4 + 6*10^3 + 9' >>> rep_pot(3200) '3*10^3 + 2*10^2'