mirror of
https://github.com/Fare-spec/cours.git
synced 2025-12-09 11:30:38 +00:00
formatte file
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
def is_palindrom(word)->bool:
|
||||
def is_palindrom(word) -> bool:
|
||||
word = list(word)
|
||||
if len(word) < 2:
|
||||
return True
|
||||
@@ -9,4 +9,5 @@ def is_palindrom(word)->bool:
|
||||
else:
|
||||
return False
|
||||
|
||||
print(is_palindrom("do geese see god".replace(' ', '')))
|
||||
|
||||
print(is_palindrom("do geese see god".replace(" ", "")))
|
||||
|
||||
Reference in New Issue
Block a user