Find the difference between the largest number and the smallest number using all number cards of 2, 4, 5, 1, 3, 7, 6, and 0 only once.
[OP_LIST_SOL] 2 4 5 1 3 7 6 0 [OP_LIST_EOL] [OP_LIST_LEN] [OP_LIST_GET_PERM] 1 [OP_LIST_MAX] 1 [OP_LIST_MIN] [OP_SUB]
var_a = 2
var_b = 4
var_c = 5
var_d = 1
var_e = 3
var_f = 7
var_g = 6
var_h = 0
list_a= []
if "/" in str(var_h):
    var_h = eval(str(var_h))
list_a.append(var_h)
if "/" in str(var_g):
    var_g = eval(str(var_g))
list_a.append(var_g)
if "/" in str(var_f):
    var_f = eval(str(var_f))
list_a.append(var_f)
if "/" in str(var_e):
    var_e = eval(str(var_e))
list_a.append(var_e)
if "/" in str(var_d):
    var_d = eval(str(var_d))
list_a.append(var_d)
if "/" in str(var_c):
    var_c = eval(str(var_c))
list_a.append(var_c)
if "/" in str(var_b):
    var_b = eval(str(var_b))
list_a.append(var_b)
if "/" in str(var_a):
    var_a = eval(str(var_a))
list_a.append(var_a)
list_a.reverse()
var_i = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_i))
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_j = 1
list_c=list_b.copy()
list_c.sort()
var_k = list_c[-var_j]
var_l = 1
list_d=list_b.copy()
list_d.sort()
var_m = list_d[var_l-1]
var_n = var_k - var_m
print(int(var_n))