Update palindrome.py

This commit is contained in:
marina 2023-08-07 17:33:48 -07:00 committed by GitHub
parent 250e136166
commit 0b6dbbaa27
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)}')