You are viewing a single comment's thread. Return to all 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)]
Seems like cookies are disabled on this browser, please enable them to open this website
Loops
You are viewing a single comment's thread. Return to all comments →
Though I like your solution (great use of unpacking), I think this is just more straightforward