Palindrome Number In Python Using For Loop Example In R