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 subpackages, 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 labusername directory:
mathematics
initpy
whoami.py
numbers
initpy
whoami.py
series.py
simple.py
geometry
initpy
whoami.py
rectangle.py
circle.py
cube.py
Create a mathematics package.
Initialize the all variable to the whoami module.
Create a whoami module.
Create a function named getname which returns the name variable.
Create a numbers subpackage.
Initialize the all variable to the whoami and series modules.
Create a whoami module.
Create a function named getname which returns the name variable.
Create a series module.
Create a function named sum which receives a keyword parameter list and returns the sum of all the values in the list.
Create a function named average which receives a keyword parameter list and returns the average of all the values in the list.
Create a simple module.
Create a function named addition which receives the keyword parameters left and right and returns left plus right.
Create a function named subtraction which receives the keyword parameters left and right and returns left minus right.
Create a function named multiplication which receives the keyword parameters left and right and returns left multiplied by right.
Create a function name
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
