Question: Part 2 Invent your own function that does some useful computation of your choosing. Do not copy the function from somewhere else. Use incremental development,
Part 2
Invent your own function that does some useful computation of your choosing. Do not copy the function from somewhere else. Use incremental development, and record each stage of the development process as you go. Finally, print output that demonstrates that the function works as you intended.
Include all of the following in your Learning Journal:
- An explanation of each stage of development, including code and any test input and output.
- The output of three calls to your function with different arguments.
The code and its output must be explained technically. The explanation can be provided before or after the code, or in the form of comments within the code. For code modification type of questions, always mention or clearly highlight the part which is modified, along with the reason stated, as a code comment. The descriptive part of your response must be at least 200 words.
If you use an informational source, be sure to identify the source and share the link to the source you used.
Reference
Downey, A. (2015). Think Python: How to think like a computer scientist. Needham, Massachusetts: Green Tree Press.https://greenteapress.com/thinkpython2/thinkpython2.pdf
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
