Types of Import

Package:python_core Main_Import.py val = __import__(‘python_core.Sample_Import’) val1 = __import__(‘python_core.Sample_Import_fun’, globals(), locals(),[‘fun_1’]) val1.fun_1() Sample_Import.py print(‘Imported sample import…..’) x=12 y=13 print(x // y) a = dict(one=1, two=2, three=3)

1 3 4 5 6 7 10