price=2000
#make a function to multiply the price by 0.9 by passing in parameters
def simple_reduction (price, num2):
answer = price * num2
print ("price is", price)
print ("new price is :" , answer)
return answer
#but not sure how I use a loop to repeat until it is less
#than 1000, as the function parameter is set to 2000
#define a while loop
while(price>1000):
price=simple_reduction(price, 0.9)