Function Imports


#1

my code was:

from module import math.sqrt()

it is not running. Pls help!!


#2

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


#3

then what will be the code?


#4

the general syntax is:

from module import function

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


#5

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