Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 16 additions & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,22 @@

def is_palindrome(palindrome):
# Start coding here
pass

#First remove the Mayus and Minus
palindrome = palindrome.casefold()

#Then i need to remove the spaces in the string
palindrome = palindrome.replace(" ","")

#And the string is ready to be reversed
reverse = palindrome[::-1]

if reverse == palindrome:
#print(palindrome, reverse)
return True
else:
return False


def validate():
for palindrome in PALINDROMES:
Expand Down