Python import

From TORI
Revision as of 16:02, 21 March 2021 by T (talk | contribs) (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,...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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