[ create a new paste ] login | about

Link: http://codepad.org/HKjnImYy    [ raw code | output | fork ]

Python, pasted on Feb 26:
1
2
3
4
5
6
def poor_square(n):
    l = [n for i in range(n)]
    return sum(l)

n = 12
print poor_square(n)


Output:
1
144


Create a new paste based on this one


Comments: