palindrome

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

View File

@ -0,0 +1,3 @@
texts = ['anastas mum satsana', 'salih', 'kabak', 'ali', 'ey edip adanada pide ye']
palindromes = [text for text in texts if text == text[::-1]]
print(palindromes)