I am trying to create 3 nested for loops and skip over any values that is not in any of the for loops. I have tried different ways but have not had much success yet. Here is the for loops:
for industry in string.ascii_uppercase:
for code in range(1, 99):
for year in range(1998, 2019):
createCSV(industry, code, year)
the problem is there are industry and code values for which data is not available. The code breaks at code=3 because 3 is missing in the original values for the variable code. If it was only one value I could just skip it using continue.
for industry in string.ascii_uppercase:
for code in range(1, 99):
if code == 3:
continue
for year in range(1998, 2019):
createCSV(industry, code, year)
But there more missing values for both industry and code and I am trying to find an efficient way. Thanks for your help.