Given a string s, write a method (function) that will return true if its a valid single integer or floating number or false if its not.
Valid examples, should return true:
should return false:
def isDigit(st):
    try:
        if int(st.strip())==0 or int(st.strip()):
            return True
    except ValueError:
        try:
            if float(st.strip()) or float(st.strip())==0.0:
                return True
        except ValueError:
            return False

def isDigit(st):
    try:
        if int(st.strip())==0 or int(st.strip()):
            return True
    except ValueError:
        try:
            if float(st.strip()) or float(st.strip())==0.0:
                return True
        except ValueError:
            return False
