Python requires indenting. So, how to initialize complex nested objects inline?
Should I write them in one long line
rewards = [[-0.04, -0.04, -0.04, -0.04], [-0.04, 0, -0.04, -0.04], [-0.04, -0.04, -0.04,-0.04]]
Or can I wrap them somehow?
UPDATE
My question is not about breaking long lines, which is clearly written in documentation, but about breaking long lines in case of defining complex nested structures, like list of lists of dictionaries of lists. I was unable to beleive we should use line continutaion syntax here.
UPDATE 1
No it's not a duplicate.