LearnPy Hub
← Lists problems
Easy

Squares List

Read n and print the list of squares from 1² to n² in Python list format, e.g. [1, 4, 9].

Input

One integer n ≥ 1.

Output

A Python list.

Sample 1

Input
3
Output
[1, 4, 9]

Sample 2

Input
1
Output
[1]
solution.py
Output appears here
Squares List · Python practice problem · LearnPy Hub