How i can assign html code to a variable so later I could refer to it?
Example:
"div class='test'" - some html code
some_variable = "'div', {'class': ='test'}" *#assigning above to the variable*
print(soup.find(some_variable)) *# is not working*
print(soup.find('div', {"class": 'test'}) # **is working**