Before I start, I will say that I am a new to programming. I just started with python, and am making a hobby project–an text-based role playing game. At one point, I want random numbers, lets say just for example: from 1-10 to be randomly generated. Also, I am interested in making a money system. Lets say I buy food, and for that I got +20 health and from my
character -10 money. How would I do that?
Before I start, I will say that I am a new to programming. I
Share
For a random number, you could do…
For your money system, you could use a dictionary.
The Python Docs and Google are good places to read about Python.