Modify layers parameters in loop

Hi, I want to systematically, change layers parameters of a model,
I saw this post in 2017,

But I am looking for some method to iterated over the layers and change them.
something like this:
FOR i in model.[iterable list of parameters]:
model.[list of parameters][i]=model.[list of parameters][i]*2

so I could iterate over layers and assign them new value based on the previous ones.