palindrom int

This commit is contained in:
Mert Gör 🇹🇷 2023-06-11 15:48:32 +03:00
parent 88b4578f7d
commit 4fccbfae3a
No known key found for this signature in database
GPG Key ID: 2100A876D55B39B9

View File

@ -0,0 +1,3 @@
numbers = [12, 1221, 13431, 12345, 197262]
a = [number for number in numbers if str(number) == str(number)[::-1]]
print(a)