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
|
1810 Discussions
|
Please Login in order to post a comment
for i in range(n): print(i**2)
for i in range(n) : print (i*
for i in range(n): print(i*i)
if name == 'main': n = int(input())
if name == 'main': n = int(input()) count = 0 for _ in range(n): print(count ** 2) count += 1