7 lines
155 B
Python
7 lines
155 B
Python
# squares.py
|
|
def square1(n):
|
|
return n ** 2 # squaring through the power operator
|
|
|
|
def square2(n):
|
|
return n * n # squaring through multiplication
|