Created
May 15, 2019 01:54
-
-
Save pertamaks/54bd2ad123f4a748acb05843a4eae44e to your computer and use it in GitHub Desktop.
Test Palindrome JDS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_palindrome(word) | |
lower = word.downcase | |
if lower == lower.reverse | |
p 'Word is Palindrome' | |
else | |
p 'Word is not Palindrome' | |
end | |
end | |
is_palindrome('Deleveled') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment