That's my first try: https://gist.github.com/miguel7501/983f794e13cc762eb6274c9b2...
>>> statistics.mean(map(int, string.digits)) 4.5