Yes, you can:
from itertools import product for a, b, c in product(a.list_of_bs, b.list_of_cs, c.list_of_ds): do_something(a, b, c)Docs: itertools.product
Almost dead, but too lazy to die: https://sourceserver.info
All humans together. We don't need politicians!
All humans together. We don't need politicians!