Create the variable discount, that has a local scope inside the apply_discount function.
discount
apply_discount
Make sure to type discount.