I don't have Windows - but this might help:
- Install Python for Windows - https://www.python.org/downloads/windows/
- Save the above script as
beer.py
- You should be able to run
python3 beer.py
to get it to run.