This is the code I entered
l = input("Enter a list : ")
lst = list(l)
item = int(input("Enter an element : "))
s = len(lst)
for i in range(s):
if item == list[i]:
print("Element is in the list")
break
elif item != list[i]:
print("Element is not in the list")
break
When I enter any element such as a string element it always shows element not found in the list, Here is the code sample of the result
Enter a list : ["Tan", "Ban", "Ran"]
Enter an element : "Tan"
Element is not in the list