You are viewing a single comment's thread. Return to all comments →
This worked for me
if __name__ == '__main__': n = int(input()) i=0 while i<n: print(i**2) i += 1
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 →
This worked for me
if __name__ == '__main__': n = int(input()) i=0 while i<n: print(i**2) i += 1