LearnPy Hub
← Classes & Objects problems
Easy

Square Class

Write class Square with a side length and a method area(). Read the side and print the area.

Input

One integer.

Output

One integer.

Sample 1

Input
4
Output
16

Sample 2

Input
1
Output
1
solution.py
Output appears here
Square Class · Python practice problem · LearnPy Hub