Skip to content

Commit 6de2fdd

Browse files
authored
Apply suggestion from @cclauss
1 parent 3fd9735 commit 6de2fdd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎maths/least_common_multiple.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def least_common_multiple_fast(first_num: int, second_num: int) -> int:
4545
>>> least_common_multiple_fast(0, 0)
4646
0
4747
"""
48-
if first_num == 0 or second_num == 0:
48+
if 0 in {first_num, second_num}:
4949
return 0
5050
return first_num // greatest_common_divisor(first_num, second_num) * second_num
5151

0 commit comments

Comments
 (0)