Skip to content

Latest commit

 

History

History
8 lines (6 loc) · 115 Bytes

check-palindrome.md

File metadata and controls

8 lines (6 loc) · 115 Bytes

Check if string is numeric

Slicing is the way to go.

def isPalindrome(s): 
    return s == s[::-1]