Aug-19-2017, 11:36 AM
Here's another way in python3:
def square (n): print (n, "squared is ", int(n)**2) return n = input("Enter a number: ") square (n)I may be wrong but raw_input was dropped in python3 to just input.