This is probably a very simple program but I tried to find an item in a list (in python) and it just doesn't seem to work.
I made a simple list called Names and had variables:
found=False
index=0
I made another variable Searchname that contains a user entered string (a name) although there seems to be an error.
while found==False and index<=(len(Names)-1):
index=index + 1
if Searchname==Names[index]:
found=True
print('Found')
else:
print('Not found')
I tried searching for an answer online but they were really complicated and I really hope that there might be some manageable solutions here.