diff --git a/13/4 - Palindrome.py b/13/4 - Palindrome.py new file mode 100644 index 0000000..0c839e9 --- /dev/null +++ b/13/4 - Palindrome.py @@ -0,0 +1,5 @@ +def isPalindrome(S): + for i in range(len(S)//2): + if S[i] != S[len(S)-i-1]: + return False + return True