diff --git a/palindrome.py b/palindrome.py new file mode 100644 index 0000000..02ddee7 --- /dev/null +++ b/palindrome.py @@ -0,0 +1,13 @@ +# Give size of list +n=int(input()) + +# Give list of numbers having size n +l=list(map(int,input().strip().split(' '))) + +print("Palindrome numbers are:") +# check through the list to check +# number is palindrome or not +for i in l: + num=str(i) + if("".join(reversed(num))==num): + print(i) \ No newline at end of file