How to Filter the palindrome numbers in the given tuple and save it in the tuple ?
My code :
w = (10,11,12,21,22,101,123,111,152)
for i in w:
    if i[:]==i[-1:]:
        print(i)
Error : TypeError                                 Traceback (most recent call last)
<ipython-input-143-b2b3cfdef377> in <module>
      7 
      8 for i in w:
----> 9     if i[:]==i[-1:]:
     10         print(i)
TypeError: 'int' object is not subscriptable
 
     
     
    