In solid mechanics, I often use Python and write code that looks like the following:
for i in range(3):
    for j in range(3):
        for k in range(3):
            for l in range(3):
                # do stuff
I do this really often that I start to wonder whether there is a more concise way to do this. The drawback of the current code is: if I comply with PEP8, then I cannot exceed the 79-character-limit per line, and there is not too much space left, especially if this is again in a function of a class.
 
     
     
     
    