Palindrome (python)

class Solution (Object): 
DEF isPalindrome (Self, X):
POP = 0
Y = X
IF X <0:
Print ( "to false")
elif X> = 0:
! the while X = 0:
I = X% 10
X = 10 // X
POP = POP + 10 * I
IF Y == POP:
return "to true"
the else:
Print ( "to false")
# really want this evaluation tucao internet. . .

Guess you like

Origin www.cnblogs.com/justkeep/p/11402125.html