Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Provjerava da li je String a palindrom
- a = "Ana voli Milovana."
- print ''.join(c for c in a.lower() if c.islower()) == ''.join(c for c in a[::-1].lower() if c.islower())
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement