Answer:
Sure, here's the code:
```
def automorphic(num):
square = str(num**2)
if square[-len(str(num)):] == str(num):
return True
else:
return False
num = int(input("Enter a number: "))
if automorphic(num):
print(num, "is an automorphic number")
else:
print(num, "is not an automorphic number")
```
In this code, we define a function `automorphic` that takes in a number `num`, computes its square and checks if the last `n` digits of the square match the original number `num`, where `n` is the number of digits in `num`. If the last `n` digits match, then the function returns `True`, indicating that `num` is an automorphic number. Otherwise, it returns `False`.
We then accept a number from the user using `input`, pass it to the `automorphic` function and display an appropriate message based on the result.