The code is getting compiled successfully but no message is being displayed, i.e no print command is being executed.
What's the error in my Python 3.7 code?
def isPalindrome(n):
s=0
while n!=0 :
d=n%10
s+=d
s*=10
n/=10
if n==s :
return True
else :
return False
def main():
if isPalindrome(252) :
print('252 is a Palindrome Number')
else :
print('252 is not a Palindrome number')