Computer Science, asked by nike18, 10 months ago

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 akionsight
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