Return list index

i wanted to return the index number in a list.
I know how to return the index number that is already in the list.
But what i wanted is to accept a string and search in the tinydb list then if that string exists in the list then return the index number.

Try something like this, modify it according to your needs

tried it
. any issue on this
image

Try this

image

Thanks that worked just perfect :wink:

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.