Why is the run terminal reflecting imported python file?
For writing python, I am using Visual Studio Code. I have a class named "ClassStoredInfo", in a file, "StoredInfo.py" in a folder called "Calculator" I wish to use the class "ClassStoredInfo" in this new file I am importing from. BUT, when I import as below in the new file, run terminal to check if the code is working, it reflects every code that is written from not knly the new file but also "StoredInfo.py" file, and prints everything written on it... ----------------------------- from Calculator.StoredInfo import ClassStoredInfo ----------------------------- Can someone explain why and how to prevent other files/classes that are imported to run on terminal?? I just wish to divide my files for specific roles, and let terminal run based on just what file i am writing my code on.