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
|
1770 Discussions
|
Please Login in order to post a comment
mistake
n = int(input()) for i in range(n): if(1
Understanding the logic behind iterative outputs, like squaring integers is essential, much like refining scripts for Real Estate Cold Calling, where each step builds precision and relevance.
if 1<= n <= 20 : i = 0 for i in range(n) : if i <= n : print(i * i) i = i+1
if name == 'main': n = int(input()) for i in range(0, n): print(i**2)
Or you can Write for i in range(n): print(i*i)