I am trying to print the result on the terminal but getting this error message:
IndexError: list index out of range
Below is the code, tha
You are trying to access the list with the length of it instead of the iterator variable i
i
print(f"{names[num_page_items].text} : {address[num_page_items].text}")
to
print(f"{names[i].text} : {address[i].text}")