You are viewing a single comment's thread. Return to all comments →
Without using the subset() function:
t= int(input()) for i in range(0, t): j = int(input()) a= set(map(int, input().split())) k = int(input()) b = set(map(int, input().s``plit())) if j > k: print('False') else: a.difference_update(b) if len(a) == 0: print('True') else: print('False')
Seems like cookies are disabled on this browser, please enable them to open this website
Check Subset
You are viewing a single comment's thread. Return to all comments →
Without using the subset() function: