LearnPy Hub
← Functions problems
Easy

Square Function

Write square(n) that returns n². The starter code reads n and prints square(n).

Input

One integer.

Output

n squared.

Sample 1

Input
4
Output
16

Sample 2

Input
0
Output
0
solution.py
Output appears here
Square Function · Python practice problem · LearnPy Hub