How many three-digit numbers are there where the sum of all the digits is 12?
100 1000 1 [OP_SUB] 1 [OP_LIST_ARANGE] [OP_LIST_NUM2SUM] 12 [OP_LIST_MORE_EQUAL] 12 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN]
var_a = 100
var_b = 1000
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)]
list_b=[]
for i in list_a:
    var_f = 0
    i = int(i)
    while i//10 > 0:
        var_f = var_f + i%10
        i = i//10
    var_f = var_f + i%10
    list_b.append(var_f)
var_g = 12
list_c = []
for i in list_b:
    if i >= var_g:
        list_c.append(i)
var_h = 12
list_d = []
for i in list_c:
    if i <= var_h:
        list_d.append(i)
var_i = len(list_d)
print(int(var_i))