We want to simultaneously draw three different numbers from natural numbers less than 10. Find the number of ways in which the sum of these three numbers become 19.
1 10 1 [OP_SUB] 1 [OP_LIST_ARANGE] 3 [OP_LIST_GET_PERM] [OP_LIST_NUM2SUM] 19 [OP_LIST_LESS_EQUAL] 19 [OP_LIST_MORE_EQUAL] [OP_LIST_LEN]
var_a = 1
var_b = 10
var_c = 1
var_d = var_b - var_c
var_e = 1
list_a = [i for i in range(var_a, var_d + 1, var_e)]
var_f = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_f))
list_b = [''.join(num_list) for num_list in list_b]
list_b = [str_num for str_num in list_b if str_num[0] != '0']
list_b = [float(i) for i in list_b]
list_c=[]
for i in list_b:
    var_g = 0
    i = int(i)
    while i//10 > 0:
        var_g = var_g + i%10
        i = i//10
    var_g = var_g + i%10
    list_c.append(var_g)
var_h = 19
list_d = []
for i in list_c:
    if i <= var_h:
        list_d.append(i)
var_i = 19
list_e = []
for i in list_d:
    if i >= var_i:
        list_e.append(i)
var_j = len(list_e)
print(int(var_j))