Jul-17-2022, 11:40 AM
Not sure if we have all the code, but I will point out - All of the code at the top executes before you hit the dunder name == dunder main. Generally recommended that you put that code into another function and call it after the check. Doesn't really explain why it executes many times, but try putting it in a function. If that does not solve, post the rest of the code.