pi.py

Links

 

About

pi.py is a very simple (and semi-useless program). It reads in a long string of characters from a file named pidb.txt and outputs them according to grouping specifications assigned by the user. For example, running pi.py 500 will print out the first 500 digits of π like this. I originally wrote this program to help me memorize π, but you could theoretically memorize any string of characters. The program includes the first 1 million digits of pi in pidb.txt (I took the data from 3.14159....com and ran a script to remove linebreaks and spaces). Simply read the readme.txt file and enjoy using this program!