These problems are taken from the Java Section of Coding Bat but modified for Python. You will have to download the program recursion1.py.txt and fill in the header. Remove the .txt extension. That extension is there because some browsers may not allow you to download executable files.
For each function that you wish to write, remove the comment symbol (#). Write your code and test it on the command line. Supposing the function you wrote was factorial. Then you will execute the following command:
Mac: python3 recursion1.py factorial Win: python recursion1.py factorialYou do that for every function that you write. I would like you to attempt all the functions in that set. In case you cannot get a function to run correctly please leave it commented out. Do NOT modify other parts of that file.
Use the Canvas program to submit your recursion1.py file. We should receive your work by 11 PM on Monday, 05 Oct 2020. There will be substantial penalties if you do not adhere to the guidelines. For this programming assignment, we expect you to work by yourself.