diff --git a/examples/example04.py b/examples/example04.py new file mode 100644 index 0000000..b10693d --- /dev/null +++ b/examples/example04.py @@ -0,0 +1,11 @@ +import package01.module01 +import package01.module02 + +a = 5 +b = 10 + +print(package01.module01.do_something(a, b)) +print(package01.module01.name()) + +print(package01.module02.do_something(a, b)) +print(package01.module02.name()) diff --git a/examples/example05.py b/examples/example05.py new file mode 100644 index 0000000..d92cfe8 --- /dev/null +++ b/examples/example05.py @@ -0,0 +1,11 @@ +import package02.A.module +import package02.B.module + +a = 5 +b = 10 + +print(package02.A.module.do_something(a, b)) +print(package02.A.module.name()) + +print(package02.B.module.do_something(a, b)) +print(package02.B.module.name()) diff --git a/examples/example06.py b/examples/example06.py new file mode 100644 index 0000000..aa72a24 --- /dev/null +++ b/examples/example06.py @@ -0,0 +1,11 @@ +from package02.A import module as Amodule +from package02.B import module as Bmodule + +a = 5 +b = 10 + +print(Amodule.do_something(a, b)) +print(Amodule.name()) + +print(Bmodule.do_something(a, b)) +print(Bmodule.name()) diff --git a/examples/package02/A/__init__.py b/examples/package02/A/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/examples/package02/A/module.py b/examples/package02/A/module.py new file mode 100644 index 0000000..17bdde7 --- /dev/null +++ b/examples/package02/A/module.py @@ -0,0 +1,5 @@ +def do_something(a, b): + return a + b + +def name(): + return __name__ \ No newline at end of file diff --git a/examples/package02/B/__init__.py b/examples/package02/B/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/examples/package02/B/module.py b/examples/package02/B/module.py new file mode 100644 index 0000000..8b02435 --- /dev/null +++ b/examples/package02/B/module.py @@ -0,0 +1,5 @@ +def do_something(a, b): + return a * b + +def name(): + return __name__ \ No newline at end of file diff --git a/examples/package02/__init__.py b/examples/package02/__init__.py new file mode 100644 index 0000000..e69de29 diff --git a/images/barcelona.png b/images/barcelona.png index 7acedf4..eeb46a0 100644 Binary files a/images/barcelona.png and b/images/barcelona.png differ diff --git a/images/barcelona.webp b/images/barcelona.webp new file mode 100644 index 0000000..7acedf4 Binary files /dev/null and b/images/barcelona.webp differ diff --git a/images/berlin.png b/images/berlin.png index d681db7..2da599d 100644 Binary files a/images/berlin.png and b/images/berlin.png differ diff --git a/images/berlin.webp b/images/berlin.webp new file mode 100644 index 0000000..d681db7 Binary files /dev/null and b/images/berlin.webp differ diff --git a/images/silicon_valley.png b/images/silicon_valley.png index 28b0e4b..b2f405a 100644 Binary files a/images/silicon_valley.png and b/images/silicon_valley.png differ diff --git a/images/silicon_valley.webp b/images/silicon_valley.webp new file mode 100644 index 0000000..28b0e4b Binary files /dev/null and b/images/silicon_valley.webp differ