Trying to pass a variable as a function argument that is inputted by the user. Getting some weird errors. Any help will be appreciated.
Error that I’m getting:
Traceback (most recent call last):
File “python”, line 14, in
File “python”, line 6, in square
TypeError: unsupported operand type(s) for ** or pow(): ‘unicode’ and ‘int’
“”“Returns the square of a number.”""
original = raw_input(‘Enter a number to be squared:’)
squared = original**2
print “%d squared is %d.” % (n, squared)
#Call the function
<do not remove the three backticks above>