Importing Variables Without Running | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
- 1

Importing Variables Without Running

What if I want to import certain variables from a module without running the module again? The variables I want to import are return values of a function inside my module.

27th Apr 2017, 2:15 PM
Wesley
1 Answer
0
I believe you can use from for variables. from myModule import myVar
23rd May 2017, 9:57 PM
Jake
Jake - avatar