I have a string and Im trying to get the index of value "bad" and for some reason it throws me an error.
>>> s = "This dinner is not that bad!"
>>> l = s.split()
>>> bad_index_value = l.index('bad')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ValueError: list.index(x): x not in list