I am new to python, so please forgive me.
I have a module: beep.py, which contains a variable: p (contains a string) and function: ps. I need to access both of these from a module: boop, and use them there.
My problem is, if I try writing import beep in boop, then beep runs all of it's code. Is there some way to get around this?
beeplaid out? Do you have amain()function, and/or useif __name__ == "__main__":?