def ispalindrome(num): if num < 0: return false else: z = num temp = 0 while z!=0: y = z % 10 temp = temp *10 + y z = z//10 return num==temp
Sign in to make a reply
_swayer
def ispalindrome(num): if num < 0: return false else: z = num temp = 0 while z!=0: y = z % 10 temp = temp *10 + y z = z//10 return num==temp