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)
print(a)
b = {4:1}
print(b)

Sample_Import_fun.py
def fun_1():
print('Imported sample import fun.....')
One-Time
Monthly
Yearly

Make a one-time donation

Make a monthly donation

Make a yearly donation

Choose an amount

$5.00
$15.00
$100.00
$5.00
$15.00
$100.00
$5.00
$15.00
$100.00

Or enter a custom amount

$

Your contribution is appreciated.

Your contribution is appreciated.

Your contribution is appreciated.

Buy Me a CoffeeBuy Me a CoffeeBuy Me a Coffee

One comment

Leave a Reply to Palanichamy Ramasamy Cancel reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s