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
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