From a fruit basket containing apple, peach, pear and melon, when a total of 3 fruits are taken out in order, allowing picking the same type of fruit, how many possible cases are there?
[OP_LIST_SOL] apple peach pear melon [OP_LIST_EOL] [OP_LIST_LEN] 3 [OP_POW]
var_a = 'apple'
var_b = 'peach'
var_c = 'pear'
var_d = 'melon'
list_a= []
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_e = len(list_a)
var_f = 3
var_g = var_e ** var_f
print(int(var_g))