Q. How are following import statements different?
(a) import X
(b) from X import *
(c) from X import a, b, c
Answer =
(a) It import entire module X.
(b) It import all functions from the module X.
(c) It import selected functions i.e., a, b, c from the module X.
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )