Find how many times the number 2 appears in a list of all natural numbers less than or equal to 50 that are multiples of 5 or 2.
1 50 1 [OP_LIST_ARANGE] 5 [OP_LIST_DIVISIBLE] 1 50 [OP_LIST_EVEN] [OP_SET_UNION] [OP_LIST2NUM] [OP_NUM2LIST] 2 [OP_LIST_FIND_NUM]
var_a = 1
var_b = 50
var_c = 1
list_a = [i for i in range(var_a, var_b + 1, var_c)]
var_d = 5
list_b = []
var_d = int(var_d)
for i in list_a:
    i = int(i)
    if i % var_d == 0:
        list_b.append(i)
var_e = 1
var_f = 50
list_c = []
if var_e%2!=0:
    for i in range(var_e+1, var_f+1, 2):
        list_c.append(i)
else:
    for i in range(var_e, var_f+1, 2):
        list_c.append(i)
list_d = list(set(list_b) | set(list_c))
var_g=""
for i in list_d:
    i = str(i)
    var_g = var_g + i
list_e = []
var_g = int(var_g)
while var_g//10 > 0:
    list_e.append(var_g%10)
    var_g = var_g//10
list_e.append(var_g%10)
list_e = list_e[::-1]
var_h = 2
var_i = 0
var_h = int(var_h)
for i in list_e:
    i = int(i)
    if i == var_h:
        var_i = var_i + 1
print(int(var_i))