How to create and use a module (python source file) in Python

1 Answer

0 votes
# pp.py (module)
def print_text():
    print("Python Programming")
import pp

pp.print_text()


'''
run:

Python Programming

'''

 



answered Sep 28, 2017 by avibootz

Related questions

1 answer 216 views
1 answer 145 views
1 answer 125 views
1 answer 134 views
4 answers 373 views
...