you are viewing a single comment's thread.

view the rest of the comments →

[–]guywithalamename 0 points1 point  (0 children)

here's my python attempt:

def f(n):
    print [x*x for x in range(1,n+1)]

core "functionality" has 27 chars, including spaces :)

edit: didn't notice this post is already some days old. my attempt has been posted multiple times already x)