5.29 How to put the digits of Pi into a list?

Suppose you want the 100 digits of Pi put in a list. This is one way to do it:

restart; 
L:=evalf(Pi,100); 
S:=convert(L,string); 
the_list:=[seq(parse(S[i]),i=3..length(S))]; 
 
    the_list := [1, 4, 1, 5, 9, 2, 6, 5, 3, ..
 

This below now tells how many times each digits occurs.

>stats[transform,tally](the_list); 
 
[Weight(0, 8), Weight(1, 8), Weight(2, 12), Weight(3, 11), 
Weight(4, 10), Weight(5, 8), Weight(6, 9), Weight(7, 7), 
Weight(8, 13), Weight(9, 13)]