In Python calling the import function brings in a module to give a program access to its namespace of classes, functions and variables.
import os
import sys
print(os.name)
print(sys.implementation)
Is there a way to list which modules have already been imported in a program?
>>> list_imports()
sys
os
And if so, is there a way to figure out the version of the imported module?