How to convert fortran code to pyhton language : My question is about converting fortran to pyhton language but i couldnt understand the working princible of this part of code.How can i rewrite the code in pyhton and which statement i should use instead of "do if then write " statement ?

[CODE_jpeg][1]


  [1]: https://i.stack.imgur.com/tZ0Yp.jpg