Check Subset

  • + 0 comments

    def func(a,b): z=b.intersection(a) if(z==a): return True else: return False

    def s(p): d=set() l=input().split(" ") for i in range(p): d.add(l[i])
    return d

    n=int(input())

    for i in range(0,n) : a=set() b=set() a=s(int(input())) b=s(int(input())) print(func(a,b)) 1. > *