diff --git a/search/add.py b/search/add.py new file mode 100644 index 0000000..4625067 --- /dev/null +++ b/search/add.py @@ -0,0 +1,21 @@ +x=23 +y=87 +z=x+y +print(f"The addition of", x, "+", y, "is", z) + +print() + +l=[0,1,2,3,34,2267,12] +e=int(input("Enter element to be searched")) + +f= False +for i in l: + if(i==l): + f=True + break +if(f==True): + print("Element found at position") + +else: + print("Element not found") +