How many three-digit numbers less than 300 satisfiy the following condition that the sum of each digit needs to be 7?
100 999 1 [OP_LIST_ARANGE] 300 [OP_LIST_LESS] [OP_LIST_NUM2SUM] 7 [OP_LIST_FIND_NUM]
var_a = 100
var_b = 999
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 300
list_b = []
for i in list_a:
    if i < var_d:
        list_b.append(i)
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 = 7
var_g = 0
var_f = int(var_f)
for i in list_c:
    i = int(i)
    if i == var_f:
        var_g = var_g + 1
print(int(var_g))