First page Back Continue Last page Overview Graphics

Simple Example

a.py contains:

def f1():

print("Hello, f1 from module 'a' calling")

b.py contains:

def foo():

print("Hello, foo from module 'b' calling")

Using the package „simple_package:

from simple_package import a,b

a.f1()

b.foo()

Output:

Hello, f1 from module 'a' calling

Hello, foo from module 'b' calling