initial commit

This commit is contained in:
hoffmeisterda104361 committed 2026-10-19 20:29:13 +02:00
commit 39f56a3b10
83 files changed
+3583

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
def palindrome_check(word: str, front: int = 0):
back = len(word)-1 - front
print(word[front], word[back])
if front >= back:
print("Palindrome")
elif word[front] == word[back]:
front += 1
palindrome_check(word, front)
word = input("Enter a word: ")
word = word.casefold()
word = word.replace(" ", "")
palindrome_check(word)