Reputation: 87
I want to do something like this
from folder import module_1, module_2 as m1, m2
instead of:
from folder import module_1 as m1
from folder import module_2 as m2
Just for the sake of practicality. How can I do it?
Note: it's not like this question because I want to import different modules
Upvotes: 1
Views: 494
Reputation: 87
Yes. The syntax was little off in the first block
from folder import module_1 as m1, module_2 as m2
Upvotes: 2