Before running .py file make sure you install python (version 2+ or 3+) from this link -> https://www.python.org/downloads/
Just basic knowledge of python concept like strings, integers, lists, conditional statements and loops will do.
Knowledge of any library, functions or classes to understand the code is not necessary.
In this game basic concept of python is used for beginners.