Output of squares of list elements
Python
Easy
lists
Task «Output of squares of list elements»
Write a program that takes a list of integers and outputs a new list containing the squares of each element. The input data is provided in a single line separated by spaces. Output the result as a list of numbers separated by spaces.
Input Format
One line containing integers separated by spaces.
Output Format
One line containing the squares of the numbers, separated by spaces.
Examples
Example 1
INPUT
0 -2 5
OUTPUT
0 4 25
Example 2
INPUT
3
-1 2 -3
OUTPUT
9
Example 3
INPUT
10
OUTPUT
100
Example 4
INPUT
5 3
1 2 3 4 5
OUTPUT
25 9
main.py