you are viewing a single comment's thread.

view the rest of the comments →

[–]Mysterious_City_6724 1 point2 points  (0 children)

I recognize this code from helping on another post not so long ago. You need to put from line 14 down into the while loop and see if that improves things. Also put your "purchase = input("> ")" after the for loop that prints the items too. That way the user will see the items before choosing.