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
|
1712 Discussions
|
Please Login in order to post a comment
if name == 'main': n = int(input()) [print(i**2) for i in range(0, n)] `
i = 0 while i < n: print(i**2) i = i + 1
if name == 'main': n = int(input()) print(0) for i in range(1,n): print(i*i)
why doesnt print(i**2 for i in range(0, n)) doesn't work?
For MySQL