Use the three numbers written on cards: 3, 4, and 7 to create a three-digit number. At this time, find the smallest value among the numbers where 4 is in the tens. (However, you cannot use number cards repeatedly.)
[OP_LIST_SOL] 3 4 7 [OP_LIST_EOL] 3 [OP_LIST_GET_PERM] 10 4 [OP_LIST_SEARCH_FIXED_DIGIT] 1 [OP_LIST_MIN]
var_a = 3
var_b = 4
var_c = 7
list_a= []
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_d = 3
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_d))
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_e = 10
var_f = 4
list_c = [] 
var_e = int(var_e)
var_f = int(var_f)
for i in list_b:
    i = int(i)
    if (i//var_e)%10 == var_f:
        list_c.append(i)
var_g = 1
list_d=list_c.copy()
list_d.sort()
var_h = list_d[var_g-1]
print(int(var_h))