This is not a problem with my code, but rather a general question about Python 3.
Say you had a game, which had 4 parts to it, and the first part (main.py
) declares a variable
that say, part 2 needs to run itself. Would you be able to declare that variable, then import part2
(That needs the variable to run smoothly) and have the variable carry on from main.py
to part2.py
after importing part2.py
into main.py
.