title: Whenever I import a module into my code the entire module is run
body: <p>I'm using python to create my first independent program, It consists of two modules. I am trying to import the main module into the other one, however whenever I import the main module, it runs the entire code. I just want to use attributes and functions from this code, but I'm not quite sure how to. Any help on this matter is greatly appreciated!</p>