Is there any way to shorten this function by way of an array, list or the like? I've tried various methods (no pun intended) but can't seem to make it work, I'm getting errors coming out the wazoo! I don't want the code, just point me in the right direction.
def main():
print("This program finds the daily mark down value of two items on sale in our \nBoutique.")
print()
rate = .1
#price = retail prices
price = 20.00
priceB = 25.00
#priceW = wholesale prices
priceW = 11.00
priceWB = 21.00
total = 0
totalB = 0
while price >= priceW:
total = total+1
price = price -(price*rate)
print("The price of the first item on day",total,"is:","$ {0:0.2f}".format(price))
print()
while priceB >= priceWB:
totalB = totalB+1
priceB = priceB -(priceB*rate)
print("The price of the second item on day",totalB,"is:","$ {0:0.2f}".format(priceB))
main()