import statement in the python

technical talkiess
0

  import math

print(math.factorial(4))

check import module path in the python
import sys
print(sys.path)

print the file content
import file2 as a
print(a.a)

fetch the function to the another file using the import function
import file2 as a
print(a.PrintJokes("Vishal"))

Tags

Post a Comment

0Comments

Thanks you for commenting your questions. I will see question and respond you.

Post a Comment (0)