I know there are similar topics and I checked every single one but I still can't figure out what I'm doing wrong here:
I have a list (todos) and want to search for an ID with the following function:
def searchID():
todo_id_search = input('Please input ID:')
if todo_id_search in todos:
print(todo_id_search)
else:
print("ID not in list")
Somehow it never returns the ID (even though its in the list). Should be possible to search for the ID like that or ma I thinking wrong? I'm using Python 3.7.
Thanks!