My issue
invalid literal for int() with base 10: ‘3 4’
unable to read integers in python
My code
# cook your dish here
n=input()
k=input()
n=eval(n)
for i in range(n):
ele=int(input())
a[i]=ele
def LSearch(a,ele):
for i in a:
if(i==ele):
return True
return False
if(LSearch):
print("Yes")
else:
print("No")
Learning course: Data structures and Algorithms
Problem Link: https://www.codechef.com/learn/course/pvp-dsa/PVPDAA13/problems/SESO03