What you'd likely want to use here is an If Statement with comparative operators.
You could make a python function to do this like so.
def findSpendingLevel(moneySpent):
if (moneySpent <= 100):
return 'bronze'
if (moneySpent > 100 and moneySpent <= 200):
return 'silver'
if (moneySpent > 200 and moneySpent <= 300):
return 'gold'
if (moneySpent > 300):
return 'diamond'
Would likely be good for your purposes. Notice how this works by taking in an argument which is the moneySpent variable, and comparing it to the boundaries of your money levels with less-than-or-equal-to (<=) and greater-than (>) comparative operators.