I have a list and I have a given string. The list looks like the following:
["hello, whats up?", "my name is...", "goodbye"]
I want to find the index in the list of where the given string is, for example:
- If the given string is "whats" I want it to return 0
- If the given string is "name" it'll be returning 1
I tried to use list_name.index(given_string)
but it says "whats" is not in the list.