I have written a loop with a while condition which iterates through rows of an excel spreadsheet, gets the values and stores them in a dictionary. When assigned conditions of the while loop are not met, it obviously breaks. I am interested in the following:
- getting the row number where the loop has broken
- restarting the loop from the break point in order to send the values from the spreadsheet to a new dictionary
Can anybody please provide an example of a code allowing to do so?