Python project: videogame merchant

Python project:  videogame merchant - student project

So, I know this code is a bit big, but as far as I tried, it works! It might be overcomplicated and I know there might be better and easier ways to do something like this, but this is what I could achieve with the knowledge I gained in this course :) This is a simulation of a purchase interaction of a character in a game and a wandering merchant. The character needs to buy something because their health is very low, otherwise they will die. The merchant offers 3 products, from which the character can only afford 2. After buying one, there is the option to buy the other one, but it is not necessary. There is also the option to just buy one and keep on traveling.

It is a very short interaction that took a lot of code, but I'm happy to say it works. I learned a lot in this course and I liked putting all the things we learned into practice with this project. 

PS: I do not know how the others got to screenshot their projects on python online, the window for me was too small, could not make it bigger and would have taken lots of screenshots to upload the whole code, so I ended up taking the screenshot from the actual python for windows.
Python project:  videogame merchant - image 1 - student projectPython project:  videogame merchant - image 2 - student projectPython project:  videogame merchant - image 3 - student project