So I've been trying to make a program "how to find if a value is stored in a variable or not". I did this but it doesn't work, it always says that it is not found even tho its inside the variable
a = [2,5,7,9,11]
cari = input("Input the value : ")
ketemu = False
for i in range(0, len(a)):
if cari == a[i]:
ketemu = True
break
if ketemu:
print("Value: ", cari, "found it")
else:
print("Value: ", cari, "not found")