Skip to content

Commit 0343b15

Browse files
committed
Added doctest for solution() in project_euler/problem_75/sol1.py
1 parent 11ab30b commit 0343b15

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

project_euler/problem_75/sol1.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ def solution(limit: int = 1500000) -> int:
2929
"""
3030
Return the number of values of L <= limit such that a wire of length L can be
3131
formmed into an integer sided right angle triangle in exactly one way.
32+
>>> solution(50)
33+
6
34+
>>> solution(1000)
35+
112
3236
"""
3337
freqs: DefaultDict = defaultdict(int)
3438
m = 2

0 commit comments

Comments
 (0)