x = input()
reverseuserinput = x[::-1]
if x == reverseuserinput:
print("true")
else:
print("false")
My code works in VS but when I submit it on leetcode it doesnt work and comes up with the error: "'int' object has no attribute 'getitem'"
It says there is a problem in line 2 but I dont know how to solve.