Question: Write a Python package with sub - packages, modules, and functions using keyword arguments. Use the following directory outline and module names ( your first

Write a Python package with sub-packages, modules, and functions using keyword arguments. Use the following directory outline and module names (your first starting point should be a directory called `mathematics` within your `lab05-username` directory):
```
mathematics/
__init__.py
whoami.py
numbers/
__init__.py
whoami.py
series.py
simple.py
geometry/
__init__.py
whoami.py
rectangle.py
circle.py
cube.py
```
1. Create a `mathematics` package.
1. Initialize the `__all__` variable to the `whoami` module.
1. Create a `whoami` module.
1. Create a function named `getname` which returns the `__name__` variable.
1. Create a `numbers` sub-package.
1. Initialize the `__all__` variable to the `whoami` and `series` modules.
1. Create a `whoami` module.
1. Create a function named `getname` which returns the `__name__` variable.
1. Create a `series` module.
1. Create a function named `sum` which receives a keyword parameter `list` and returns the sum of all the values in the list.
1. Create a function named `average` which receives a keyword parameter `list` and returns the average of all the values in the list.
1. Create a `simple` module.
1. Create a function named `addition` which receives the keyword parameters `left` and `right` and returns left plus right.
1. Create a function named `subtraction` which receives the keyword parameters `left` and `right` and returns left minus right.
1. Create a function named `multiplication` which receives the keyword parameters `left` and `right` and returns left multiplied by right.
1. Create a function name

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!