User blog comment:QuasarBooster/Did I translate this mathematica code right?/@comment-30004975-20190910184540/@comment-30004975-20190911021958

The last line should be indented since it's executed every time the condition is executed and you probably haven't heard of := since Python 3.8 hasn't been released yet.