We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d778b8f + ee45bf0 commit 22463d8Copy full SHA for 22463d8
string_import.py
@@ -1,12 +1,12 @@
1
# you can use builtin __import__ function
2
3
-modname = 'string'
+modname = 'strings'
4
string = __import__(modname)
5
-print(string)
+print(strings)
6
7
# Python official prefferred way
8
9
import importlib
10
11
-string = importlib.import_module(modname)
12
+strings = importlib.import_module(modname)
0 commit comments