What is the difference between the second largest and the third smallest four-digit numbers that can be formed by using one time of all even numbers less than 10?
0 10 1 [OP_SUB] [OP_LIST_EVEN] 4 [OP_LIST_GET_PERM] 2 [OP_LIST_MAX] 3 [OP_LIST_MIN] [OP_SUB]
var_a = 0
var_b = 10
var_c = 1
var_d = var_b - var_c
list_a = []
if var_a%2!=0:
    for i in range(var_a+1, var_d+1, 2):
        list_a.append(i)
else:
    for i in range(var_a, var_d+1, 2):
        list_a.append(i)
var_e = 4
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_e))
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]
var_f = 2
list_c=list_b.copy()
list_c.sort()
var_g = list_c[-var_f]
var_h = 3
list_d=list_b.copy()
list_d.sort()
var_i = list_d[var_h-1]
var_j = var_g - var_i
print(int(var_j))