Chaining variables issue 54-8

Screen Link:

After checking the solution I am surprised that my code does not work. The only difference is that I have chained a variable.

outer_items =".outer_text")
first_outer_text = outer_items[0].text

second ="#second")[0]
second_text = second.text

What actually happened:

IndexErrorTraceback (most recent call last)
<ipython-input-1-7f4174e61d11> in <module>()
     12 outer_items =".outer_text")
---> 13 first_outer_text = outer_items[0].text
     15 second ="#second")[0]

IndexError: list index out of ranger

the class should be .outer-text and not .outer_text, you replaced hyphen with an underscore