Problem 1.4

Square

Write a function square to compute the square of a number.

>>> square(4)
16

Solution

def square(n):
    return n*n