The dice were thrown 5 times and the values that came out were 2, 4, 4, 1, and 5 in that order. Find how many times 4 came out.
[OP_LIST_SOL] 2 4 4 1 5 [OP_LIST_EOL] 4 [OP_LIST_FIND_NUM]
var_a = 2
var_b = 4
var_c = 4
var_d = 1
var_e = 5
list_a= []
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_f = 4
var_g = 0
var_f = int(var_f)
for i in list_a:
    i = int(i)
    if i == var_f:
        var_g = var_g + 1
print(int(var_g))