Sort:  

If you have Python installed you can simply add the source code into a file and say it with the .py file extension. Then run it from your command line.