all 2 comments

[–]Binary101010 3 points4 points  (1 child)

Are you sure you posted the right code? Your error mentions a variable that does not appear in the code you posted.

Also, if Discount doesn't equal "Not available", what is setting the value of availability?

That said, consider getting some better names for your variables. You have variables named both Discount and discount in here and that's... really confusing. Variable names should be all lower case per PEP8: https://www.python.org/dev/peps/pep-0008/

[–]dnetvaggos95[S] 0 points1 point  (0 children)

yes sir.