LearnPy Hub
← NumPy problems
Easy

Square Every Element

Read integers and print every value squared as a list, using a ** 2.

Input

Integers separated by spaces.

Output

A Python list.

Sample 1

Input
1 2 3
Output
[1, 4, 9]

Sample 2

Input
-4
Output
[16]
solution.py
Output appears here
Square Every Element · Python practice problem · LearnPy Hub