Python newbie here. Let's say I have two Python scripts main.py and lib.py. There is a variable (not a function) in lib.py that I want to use in main.py. I imported lib.py in main.py and called lib.variable. I still receive the classical import error ('module' has no attribute called 'variable') and I don't get why. Both files remain in the same directory and I triple ckecked for typo. I also tried the 'from lib import variable' command, with no results.
What am I doing wrong?