The code seems Fine but doesn't pass one test case, (Qno 17 in tries)
Created 3 years ago
22
Views
0
Comments
a = int(input())
main = []
for i in range(a):
main.append(input())
b = int(input())
for i in range(b):
x = list(map(str, input().split()))
x.pop(0)
for j in x:
if j not in main:
print("All words in list")
break
else:
print("Not all words in list")