We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4fcf266 commit 3b611b0Copy full SHA for 3b611b0
1 file changed
maths/series/catalan_numbers.py
@@ -9,8 +9,6 @@
9
"""
10
11
from __future__ import annotations
12
-import math
13
-
14
15
def catalan_numbers(count: int) -> list[int]:
16
@@ -64,10 +62,9 @@ def catalan_numbers(count: int) -> list[int]:
64
62
65
63
66
if __name__ == "__main__":
+ import math
67
import doctest
68
69
doctest.testmod()
70
71
try:
72
num = int(input("Enter the number of Catalan numbers to generate: "))
73
if num < 0:
0 commit comments