def is_quoted(s):
    """ Returns True if the string begins and ends with quotes (single or double)

        :param s: a string
        :return: boolean
    """
    return s.startswith("'") and s.endswith("'") or s.startswith('"'
        ) and s.endswith('"')
