def is_number(s):
    """
    check if a string represents an integer or float number

    parameter
    --------
        s: a string
    
    return
    ------
        return True iff S represents a number (int or float)
    """
    try:
        float(s)
        return True
    except ValueError:
        return False