mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 12:16:14 -04:00
Update palindrome.py
This commit is contained in:
parent
250e136166
commit
0b6dbbaa27
@ -12,12 +12,3 @@ def is_palindrome(sentence):
|
||||
return is_palindrome(sentence[1:-1])
|
||||
|
||||
return False
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
print('Testing is_palindrome()...')
|
||||
sentence ="subi no onibus"
|
||||
print(f'Is {sentence} a palindrone?: {is_palindrome(sentence)}')
|
||||
|
||||
sentence ="helllo there"
|
||||
print(f'Is {sentence} a palindrone?: {is_palindrome(sentence)}')
|
||||
|
Loading…
x
Reference in New Issue
Block a user