Fast and pythonic way to find out if a string is a palindrome

Published: 22/09/2019
Fast and pythonic way to find out if a string is a palindrome
Source: STACKOVERFLOW.COM

[Edit: as someone pointed out I have used improperly the palindrom concept, now I have edited with the correct functions. I have done also some optimizations in the first and third example, in which the for statement goes until it reach half of the string] I have coded three different versions for a method which checks if a string is a palindrome. The method are implemented as extensions for the c

Read more
Related news
Comment
FACEBOOK