I'm writing code that's pulling in data from a website and it's printing out all the text between certain tags. I am storing the result into a list every time the code pulls data from a tag so I have a list looking something like
Warning
Not
News
Legends
Name1
Name2
Name3
Pickle
Stop
Hello
I want to look into this list of strings and have code that'll find the keywords legends and pickle and print whatever strings are between them.
To elaborate in a further activity, I may create a whole list of all possible legend names and then, if they occur whenever I generate my list, to print those out that reoccur. Any insight into any of these questions?