How many 3-digit numbers are there where each digit is different and the sum of the digits is 9?
0 9 1 [OP_LIST_ARANGE] 3 [OP_LIST_GET_PERM] [OP_LIST_NUM2SUM] 9 [OP_LIST_MORE_EQUAL] 9 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN]
var_a = 0
var_b = 9
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
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_e = 0
    i = int(i)
    while i//10 > 0:
        var_e = var_e + i%10
        i = i//10
    var_e = var_e + i%10
    list_c.append(var_e)
var_f = 9
list_d = []
for i in list_c:
    if i >= var_f:
        list_d.append(i)
var_g = 9
list_e = []
for i in list_d:
    if i <= var_g:
        list_e.append(i)
var_h = len(list_e)
print(int(var_h))