SyntaxError: keyword can't be an expression on multiple axis plot

Hello, I am having a keyword error while making a multi axis plot. here is my code down below.

fig = go.Figure()

for param in params: #list of parameters from dropdwon menu. pretty working well!
        
        p=0
        fig.add_trace(go.Scatter(x=df_A['TIME'], y=df_A[param], name=param, mode = 'lines', yaxis='y'+str(params.index(param)+1)))
        fig.update_layout('yaxis'+str(params.index(param)+1) = dict(title='yaxis'+str(params.index(param)+1)+'title',
           
                anchor="free",
                overlaying="y",
                side="left",
                position=p))
        p=p+0.25
        
return fig   

the problem is on the fig.update_layout(β€˜yaxis’+str(params.index(param)+1), becuase what i need is yaxis1,yaxis2,yaxis3 etc depending on my number of params chosen. how do i do these? with my current code i get keyword error on this part. thank you very much!