Py file inside main repl

Question: I attached word guessing game made from a module/another py file, then imported it to my main.py.
Its running perfectly at first run of the game, but when it loops for a second run, it tells me that i already provided the letters.
Only option for me is to restart the whole script of main.py all over again.
The guessing game file works perfectly on its own.
Do modules/files inside the main repl not refresh or do a proper loop until i restart the main file?

Can you share a link to the repl or paste here a formatted version of your code? In this way we can help.

2 Likes