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
|
1571 Discussions
|
Please Login in order to post a comment
Reading the integer from standard input
n = int(input())
Printing the square of each non-negative integer less than n
for i in range(n): print(i * i)
i = 0 while i < 5: print i i += 1
n=int(input),for i in range(0,n):print(i**2)
n = int(input())
for i in range(0, n): print(i ** 2)
if name == 'main': n = int(input()) for i in range(0,n): print(i*i)