def is_number(s):
    """Determine if the string `s` is a number.

    Examples:
        >>> is_number('5')
        True
        >>> is_number('5.5')
        True
        >>> is_number('foo')
        False
    """
    try:
        float(s)
        return True
    except ValueError:
        return False