LearnPy Hub
← Comprehensions problems
Easy

Squares

Read a list of integers and print the list of their squares in Python list format, using a list comprehension.

Input

One line of integers.

Output

A list.

Sample 1

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

Sample 2

Input
-2 0 2
Output
[4, 0, 4]
solution.py
Output appears here
Squares · Python practice problem · LearnPy Hub