Q)how are the following two statements different from each other
a)import math
b)from math import ceil
Acc to python
Answers
Answered by
12
Answer:
the both differ a lot
Explanation:
when you type 'import math' you are importing all functions and classes in the math module but when you type 'from math import [name of class]', you only get access to that class in the whole module. you may write this 'from math import *' to import everything from the "from" statement
Similar questions
Hindi,
5 months ago
Math,
10 months ago
Business Studies,
10 months ago
Science,
1 year ago
English,
1 year ago