I'm going back and forth and screwing myself up on this code. I have a formula to calculate total meal price.
bill = price+(price*tax)+((price+(price*tax))*tip)
new_bill = total_cost(15,.08875,.18)
You just need to loop over the percentages:
for tip in range(15, 26, 1): # the end point is exclusive with "range" cost = total_cost(15, 0.08875, tip/100.) # in python3 you could use tip/100 print(cost)