How to connect and link two files together using python?
I'm trying to create a game but I do not know how to link two files together. Example: if I have two files, one named main.py and the other named test.py, how can I link the two files together by using both piles to get the result from main.py and test.py?
import test print(mylittletest)
mylittletest = "hello"
when I do
import test it imports
test.py and every function and variable!
and yes it does run both files so if I put
print("bababooey") on both files it would print bababooey twice.