mirror of
https://github.com/Alvin-Zilverstand/ict-algemeen-opdrachten.git
synced 2026-03-06 11:06:59 +01:00
Remove unnecessary blank lines in palindrome check script
This commit is contained in:
@@ -1,10 +1,8 @@
|
||||
def is_palindrome(word):
|
||||
return word == word[::-1]
|
||||
|
||||
|
||||
input_word = input("Voer een woord in: ")
|
||||
|
||||
|
||||
if is_palindrome(input_word):
|
||||
print(f"{input_word} is een palindroom.")
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user