elements = (title_element, company_element, location_element) if all(elements): for element in elements: print(element.text.strip()) print()the part where you search for each element can also be shortened with a loop if you have a container type with what you search for
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs