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
|
1731 Discussions
|
Please Login in order to post a comment
if name == 'main': 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**2)
I came up with a different solution I think than most. But still works
¯\_(ツ)_/¯