I tried this:
print(type(list(soup.children)[0])) but the output I get includes the word 'class' Output: [<class 'bs4.element.Tag'>]
I'd like it to only show me 'bs4.element.Tag', just like if I wrote in the command line:
type(list(soup.children)[0]) Output: bs4.element.Tag
<>.