• + 6 comments

    One line, but less clear. I'd rather read something simple and easy to scan, like:

    for x in range(1,n+1):
        print(x,end='')