My issue
cook your dish here
v=int(input())
for i in range(v):
n1=int(input())
lst1=list(map(int,input().split()))
n2=int(input())
lst2=list(map(int,input().split()))
for i in lst2:
if i not in lst1:
print(“No”)
else:
print(‘Yes’)
WHY IT DOES NOT TAKING INPUT ERROR MESSAGE;-Traceback (most recent call last):
File “/mnt/sol.py”, line 2, in
v=int(input())
^^^^^^^
EOFError: EOF when reading a line
My code
# cook your dish here
v=int(input())
for i in range(v):
n1=int(input())
lst1=list(map(int,input().split()))
n2=int(input())
lst2=list(map(int,input().split()))
for i in lst2:
if i not in lst1:
print("No")
else:
print('Yes')
Problem Link: Chef and his Sequence Practice Coding Problem - CodeChef