palindrome
This commit is contained in:
parent
ef4d60dbf2
commit
88b4578f7d
3
python-temel/palindrom.py
Normal file
3
python-temel/palindrom.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user