Question: 
Write a python function to check whether the given string is a binary string or not.


Model's Code:
def check(s):
    return "Yes" if all(char in '01' for char in s) else "No"



Sample Correct Code:
def check(string) :
    p = set(string) 
    s = {'0', '1'} 
    if s == p or p == {'0'} or p == {'1'}: 
        return ("Yes") 
    else : 
        return ("No") 


Asserts:
assert check("01010101010") == "Yes"
assert check("name0") == "No"
assert check("101") == "Yes"


Tests:
Test 1 of 3: PASS
Test 2 of 3: PASS
Test 3 of 3: PASS

Test 349 of 974: 253/349 (72.49283667621776%): success