I am working on webscraping where I want to compare 2 values:
1. Values extracted from web as a list
2. Values extracted as a single variable-around 5 individual variables
I want to run a comparison of each value of the list with these 5 variables
My approach-
Using a for each loop and fetching each item in array using a counter,countervariable.-currentitem[countervariable]
The problem is as soon as the countervariable is 1 it throws an error-'Index 1 is out of range'
I want to use- if currentitem[countervariable]='web attribute value extracted as a single variable'
How can I go about it?