Hi ! Assuming you're talking about Prefect 1.x.
looks like what you want to be doing.
In some corner cases where the number of loops is not deterministic (e.g. relies on some variable), you could consider using loops
Don't hesitate to ask if you have some more questions after reading those docs 🙂