← Problem book: Python
Lesson 88 of 96 · 10 XP
Function: number of divisors
Theory and problem statement
Machine translation, not yet reviewed by a native speaker.
Write a function divisors(n) that returns how many divisors a number has (n ≥ 1). Read a number and print the number of its divisors.
Example
Input:
6
Output:
4
Sign up for free to solve this task right in your browser: code editor, running, test checks and hints.