I'm trying to calculate probabilities. What is the probability of drawing a card with a number less than or equal to 9 when drawing one from the number cards 1, 3, 4, 6, 7, and 9?
[OP_LIST_SOL] 1 3 4 6 7 9 [OP_LIST_EOL] 9 [OP_LIST_LESS_EQUAL] [OP_LIST_LEN] [OP_LIST_SOL] 1 3 4 6 7 9 [OP_LIST_EOL] [OP_LIST_LEN] [OP_DIV]
var_a = 1
var_b = 3
var_c = 4
var_d = 6
var_e = 7
var_f = 9
list_a= []
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_g = 9
list_b = []
for i in list_a:
    if i <= var_g:
        list_b.append(i)
var_h = len(list_b)
var_i = 1
var_j = 3
var_k = 4
var_l = 6
var_m = 7
var_n = 9
list_c= []
if "/" in str(var_n):
    var_n = eval(str(var_n))
list_c.append(var_n)
if "/" in str(var_m):
    var_m = eval(str(var_m))
list_c.append(var_m)
if "/" in str(var_l):
    var_l = eval(str(var_l))
list_c.append(var_l)
if "/" in str(var_k):
    var_k = eval(str(var_k))
list_c.append(var_k)
if "/" in str(var_j):
    var_j = eval(str(var_j))
list_c.append(var_j)
if "/" in str(var_i):
    var_i = eval(str(var_i))
list_c.append(var_i)
list_c.reverse()
var_o = len(list_c)
var_p = var_h / var_o
print(int(var_p))