LoslegenKostenlos starten

Modules, packages and subpackages

When developing packages, it will be important to know your terminology.

Can you name the different parts of this package directory tree?

directory1/
|-- __init__.py
|-- directory2
|   |-- __init__.py
|   `-- file1.py
`-- file2.py

Note that file1.py and file2.py contain general functions which are intended to be imported.

Diese Übung ist Teil des Kurses

<Kurs>Developing Python Packages</Kurs>
Kurs ansehen

Interaktive praktische Übung

Verwandle Theorie mit einer unserer interaktiven Übungen in die Praxis

Übung starten