Skip to content

Commit 12603bc

Browse files
authored
Clarify return value in is_abundant_number function
Updated docstring to clarify the function's return value.
1 parent fa2cf74 commit 12603bc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

maths/special_numbers/abundant_numbers.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,15 @@
33
the sum of its proper divisors is greater than the number itself.
44
55
Examples of Abundant Numbers: 12, 18, 20, 24, 30, 36, 40, 42, 48, 54, ...
6+
7+
https://en.wikipedia.org/wiki/Abundant_number
68
"""
79

810

911
def is_abundant_number(number: int) -> bool:
1012
"""
1113
This function takes an integer number as input.
12-
Returns True if the number is an abundant number.
14+
Returns True if the number is abundant.
1315
1416
>>> is_abundant_number(-1)
1517
False

0 commit comments

Comments
 (0)