Check Subset

  • + 0 comments
    T= int(input())
    for inputs in range(T):
        no_of_elements_in_A = int(input())
        A = set(input().split())
        no_of_elements_in_B = int(input())
        B = set(input().split())
        
        if len(A.difference(B)) == 0:  # or, A.difference(B)==set()
            print("True")
        else:
            print("False")