On 3/19 I am tasked with defining the function square:
“”“Returns the square of a number.”""
squared = n ** 2
print “%d squared is %d.” % (n, squared)
Can someone explain to me why I have defined it as ‘square’ yet all the function within say ‘squared?’
At the end I have to call the square function: square(10) and it gives me the correct answer despite being mixed between square and squared