def the_same(m):
m =str(m)
return m == m[::-1]
L = list(filter(the_same,[121,333,434,234232]))
print(L)
Sign in to make a reply
故
def the_same(m):
m =str(m)
return m == m[::-1]
L = list(filter(the_same,[121,333,434,234232]))
print(L)