You want to create a four-digit number where the sum of each digit is 15. How many numbers can you make in total?
1000 9999 1 [OP_LIST_ARANGE] [OP_LIST_NUM2SUM] 15 [OP_LIST_LESS_EQUAL] 15 [OP_LIST_MORE_EQUAL] [OP_LIST_LEN]
var_a = 1000
var_b = 9999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
list_b=[]
for i in list_a:
    var_d = 0
    i = int(i)
    while i//10 > 0:
        var_d = var_d + i%10
        i = i//10
    var_d = var_d + i%10
    list_b.append(var_d)
var_e = 15
list_c = []
for i in list_b:
    if i <= var_e:
        list_c.append(i)
var_f = 15
list_d = []
for i in list_c:
    if i >= var_f:
        list_d.append(i)
var_g = len(list_d)
print(int(var_g))