Question #306

It is possible to import a module with its name as a variable.

True! This is possible with the syntax below:

modname = 'itertools'
m = __import__(modname)

(stackoverflow.com/questions/13598035/importing-a-module-w...)


Comment on Disqus:

Comment on Twitter:

Question difficulty: šŸ”µšŸ”µšŸ”µšŸ”µšŸ”µ