logo CodeStepByStep logo

count_factors

Language/Type: Python errors if/else % return

What is wrong with the following code, which attempts to return the number of factors of a given integer n? Determine what is wrong with the code, and submit a corrected version that works properly.

Function: Write a Python function as described, not a complete program.

You must log in before you can solve this problem.

Log In

Need help?

Stuck on an exercise? Contact your TA or instructor.

If something seems wrong with our site, please

Is there a problem? Contact us.