You are viewing a single comment's thread. Return to all comments →
FROM THIS:
counter = 0; while counter < n : print (counter**2) counter = counter + 1
TO THIS:
[print(i**2) for i in range(n)]
Thanks alot for that link
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 →
FROM THIS:
TO THIS:
Thanks alot for that link