Input Format
The first line will contain the number of test cases, .
The first line of each test case contains the number of elements in set .
The second line of each test case contains the space separated elements of set .
The third line of each test case contains the number of elements in set .
The fourth line of each test case contains the space separated elements of set .
Constraints
Output Format
Output True or False for each test case on separate lines.
hackerrank check subset problem solution in python

Problem solution in python 2 programming language.

for i in range(int(raw_input())): 
    a = int(raw_input()); A = set(raw_input().split()); 
    b = int(raw_input()); B = set(raw_input().split());
    print A <= B

Problem solution in python 3 programming language.

for _ in range(int(input())):
x, a, z, b = input(), set(input().split()), input(), set(input().split())
print(a.issubset(b))