Source Code for Me (s-c.me)

Allows you to paste souce code to blogs! Adapted for Twitter! Here is Search Form in case you missed your code.
Tags: Python,func, Created At: 10/24/2016 7:54:21 PMViews:

HTML view:
Copy Source | Copy HTML
figure = {}
xlist = []
ylist = []
 
def func():
    for n in xrange(int('44444444', 5)):
        num = to_new_base(n, 5)
        expr = ''
        for i, j in zip(line, num):
            expr += i + d[j]
        expr += '9'
        num_sum = eval(expr)
        if num_sum in figure:
            figure[num_sum] += 1
        else:
            figure[num_sum] = 1
 
    for key in sorted(figure):
        xlist.append(key)
        ylist.append(figure[key])

Based on Manoli.Net's CodeFormatter. Made by Topbot (c) 2008-2018