2021-10-28 17:38:16 +05:30

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