You are viewing a single comment's thread. Return to all comments →
for num in range(0, n): print(num**2)
Or you can write it in a loop comprehension
[print(num**2) for num in range(0, 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 →
Or you can write it in a loop comprehension