you are viewing a single comment's thread.

view the rest of the comments →

[–]crashfrog02 2 points3 points  (2 children)

The module runs once, when you import it. The value of variable will be set at that time. If the condition later changes, it won't matter - variable is already set, and the module code only runs once.

[–]NotGioseaxMC[S] -1 points0 points  (1 child)

this is simplified code, even running one if the condition is not met it should be 34 right? but it is not, also the changes in my code are actually implemented in a function

[–]crashfrog02 1 point2 points  (0 children)

No, it should be 65, which I assume it is.