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
|
1764 Discussions
|
Please Login in order to post a comment
I know trhat is not necessary a list but well.. if I'll use this data next I supoused that is a good idea
if name == 'main': n = int(input()) list= []
if name == 'main': n = int(input())
this is my code and it worked .
`
if name == 'main': n = int(input()) for i in range(0,n): print(i*i) print("\n")
Here is Loops solution in Python - https://programmingoneonone.com/hackerrank-loops-problem-solution-in-python.html