Difference between revisions of "Python import"

From TORI
Jump to: navigation, search
(Created page with "Python import is way to keep the Python subroutine(s) in separate file(s), in order avoid repetition of the same subroutine in various programs. In the simple case,...")
 
(No difference)

Latest revision as of 16:02, 21 March 2021

Python import is way to keep the Python subroutine(s) in separate file(s), in order avoid repetition of the same subroutine in various programs.

In the simple case, if the routine is called ado and is stored in file ado.py, the import can be performed with command

from ado import ado

References