Python tutorial #4 || Python Loops - HackerRank solution

preview_player
Показать описание
Python tutorial #4 || Python Loops - HackerRank solution

In this video we are going to learn python Loop statement, by solving HackerRank problem (Loops). With this we can learn basic loop statement and range function in python.
This series helps you to get python certificate on hackerrank, which adds weight to your resume and helps to get placed in a good company

---- Contents of the video -----------

0:00 - Intro
0:04 - Problem statement
0:25 - Sample Testcases
0:37 - Range funtion
0:58 - Solution

Question :-

The provided code stub reads and integer, , from STDIN. For all non-negative integers , print .

Example
n=3
The list of non-negative integers that are less than n=3 is . Print the square of each number on a separate line.

0
1
4

Input Format
The first and only line contains the integer, .

Output Format
Print n lines, one corresponding to each .

Sample Input 0
5
Sample Output 0
0
1
4
9
16

#python
#hackerrank
#tutorial
#learnit
#pythonforbeginners
#hackerranksolutions
#certificate
Рекомендации по теме