We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Python
- Introduction
- Loops
- Discussions
Loops
Loops
Sort by
recency
|
1680 Discussions
|
Please Login in order to post a comment
n = int(input()) for x in range(n): print(x*x)
n=int(input()) [print(i**2) for i in range(n)]
if name == 'main': n = int(input()) n = n-1 list_ = []
while n>=0: list_.append(n) n = n-1
ordened_list_ = sorted(list_)
for x in ordened_list_: print( x**2 )
n = int(input()) i = 0 while i < n: print(i*i) i += 1