Defining very deep networks with a repeat layer

I want to define very deep networks with identical layers. Say I want to define a block of 1000 convolutional layers, how can I do this without a for loop ?

what’s the problem with for loops?

a for loop is the way to go.