Function Imports


my code was:

from module import math.sqrt()

it is not running. Pls help!!


math is the module, and from math you want import sqrt


then what will be the code?


the general syntax is:

from module import function

in this case, math is your module and sqrt is the function you want to import


This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.