We want to create a new number by moving each digit of 234. How many cases are there where you make a new number that is greater than 340? 
234 [OP_NUM2LIST] [OP_LIST_LEN] [OP_LIST_GET_PERM] 340 [OP_LIST_MORE] [OP_LIST_LEN]
var_a = 234
list_a = []
var_a = int(var_a)
while var_a//10 > 0:
    list_a.append(var_a%10)
    var_a = var_a//10
list_a.append(var_a%10)
list_a = list_a[::-1]
var_b = len(list_a)
list_b = [str(i) for i in list_a]
list_b = list(itertools.permutations(list_b, var_b))
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_c = 340
list_c = []
for i in list_b:
    if i > var_c:
        list_c.append(i)
var_d = len(list_c)
print(int(var_d))