Question: Exercise 9 Step 1: Create a new editor window and save it. Use labbex9.py as the file name. Step 2: Use the function design recipe

Exercise 9 Step 1: Create a new editor window and save it. Use labbex9.py as the file name. Step 2: Use the function design recipe to develop a function named divisors. The function takes a positive integer n and returns a list containing all the positive divisors of n. For example, if divisors is called with argument 6, the list will contain 1, 2, 3 and 6. If divisors is called with argument 9, the list will contain 1, 3 and 9. Your function must have exactly one loop. Your function can call Python's list methods, but this isn't necessary. Your function definition must have type annotations and a complete docstring. Use the Python shell to test your function
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
