I'm on a Python project that uses this for-loop all over the place
for year in yearsindex:
for month in monthindex:
for hour in hourindex:
for node in nodeindex:
dosomething(year, month, hour, node)
I was wondering if there was a way to combine all of the iterators into a single iterator to be more readable
Something in the form of
for (year, month, hour, node) in combinediterator:
dosomething(year, month, hour, node)