• + 15 comments

    Though I like your solution (great use of unpacking), I think this is just more straightforward

    [print(i**2) for i in range(n)]