def contains_string(string,lines):
    """returns true if at least one of the lines contains the given string"""
    for line in lines:
        if string in line:
            return True
    return False