Mom, Dad and Grandpa bought clothes at the department store. Dad bought more clothes than Mom, and Grandpa bought more clothes than Dad. In what place did grandpa rank for buying the least amount of clothes?
[OP_LIST_SOL] Mom Dad Grandpa [OP_LIST_EOL] Grandpa [OP_LIST_INDEX]
var_a = 'Mom'
var_b = 'Dad'
var_c = 'Grandpa'
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 = 'Grandpa'
var_e = list_a.index(var_d)+1
print(int(var_e))