python not recognizing variable in if statement
<p>I'm having some trouble figuring out how to name a variable inside an if statement. Any bit of information will help (I cut the beginning of code because it all works until I want to display cost) p.s it's a homework assignment </p>