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