Check if string is numeric

less than 1 minute read

Check if string is numeric

Slicing is the way to go.

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

Leave a comment