Jump to Post
Just make sure they are both in the same directory (probably c:/python or something like that).
Then you can just import the other file and use it like it is a module.
import test.py #just imports the file from test.py import * #brings every class and function …
All 4 Replies
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.