from wolfpack my_calc import sum numcurrentlywe have only two files in the package therefore it' easy to import 'functionlike this butif we have files with folders in packagethen it will be difficult/inconvenient to remember the import-location of the 'methodsa better approach is to to use the '__init__ pyfile as shown belowfirst go to package folder and create an __init__ py with following contentwolfpack/__init__ py import functions from my_calc from my_calc import sum numdiff num nowwe can import the commands directly without knowing the file structurerun from root-folder 'bucketfrom wolfpack import sum numdiff num sum num( __all__ in __init__ file if we want to allow 'import *option for our packagethen we need to add the magic keyword '__all__in the __init__ py file wolfpack/__init__ py import sum num from my_calc from my_calc import sum num import 'my_calcand 'my_calcfor 'import *__all__ "sum num""my_calc""my_worknowuse the 'import *command in the python shell as below following items will be imported with commandmodule 'my_calcmodule 'my_workfunction 'sum numwarningin line of above codeonly 'sum numis imported if we do not include sum num in the '__all__ (line )'then '__all__will overwrite the line and 'sum numwill not be available and error (in below codesimilar to 'diff num( )will be shown for sum num (run from the root-folder 'bucket'(pythondsppython from wolfpack import my_work sum num( (continues on next page packages