Problem Name: Python -
In this HackerRank Functions in PYTHON problem solution,
The provided code stub reads and integer, n, from STDIN.
For all non-negative integers i < n, print i**2
n = 3
The list of non-negative integers that are less than n = 3 is [0,1,2]. Print the square of each number on a separate line.
0 1 4
The first and only line contains the integer, n.
1 <= n <= 20
Print n lines, one corresponding to each i .
Sample Input 0
Sample Output 0
0 1 4 9 16
#1 Code Example with Python Programming
Copy The Code & Try With Live Editor
N=int(input()) for i in range(0,N): print (i**2)