Create 4 - Palindrome.py
This commit is contained in:
parent
2543d7baf4
commit
0aeafe87da
5
13/4 - Palindrome.py
Normal file
5
13/4 - Palindrome.py
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user