probably a very simple question: How to change a list name in the for loop 'header'? For example, in the next piece of code the number '4' comes from a user defined variable 'N', so instead of looking like this:
for tr in st_**4**:
tr.data = np.require(tr.data, dtype=np.float32)
I would like to establish the dependency with 'N', for example:
for tr in st_**N**:
tr.data = np.require(tr.data, dtype=np.float32)
but I can not find what is the right way to write this.
thanks in advance.