@Nasser It seems there is no really one way to do things in Python ;) ... According to [this "hot network question"] (
stackoverflow.com/questions/30451252/…) yesterday, it seems Python users have the same kind of questions than here on MSE ... I can't remember the last time I made a for loop in mma ... I was tempted to post an answer Wolfram Language which in that case seems to me far more readable ;)