For example take a.py
stringcheese = "hi"
print("I don't want this printed")
and now b.py:
from a import stringcheese
print(stringcheese)
The output is:
I don't want this printed
hi
How can I just import stringcheese
without executing a.py
's code?