
Complete the following Python function: ```python def large...
Prompt
Complete the following Python function: ```python def largest_divisor(n: int) -> int: """ For a given number n, find the largest number that divides n evenly, smaller than n >>> largest_divisor(15) 5 """ ```
Answer guidance
Canonical solution (function body): for i in reversed(range(n)): if n % i == 0: return i
Drag to resize
Drag to resize
Drag to resize