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 608f6b7 commit b100541Copy full SHA for b100541
maths/series/catalan_numbers.py
@@ -9,6 +9,8 @@
9
"""
10
11
from __future__ import annotations
12
+import doctest
13
+
14
15
def catalan_numbers(count: int) -> list[int]:
16
@@ -72,4 +74,4 @@ def catalan_numbers(count: int) -> list[int]:
72
74
else:
73
75
print(f"The first {num} Catalan numbers are: {catalan_numbers(num)}")
76
except ValueError:
- print("Invalid input. Please enter an integer.")
77
+ print("Invalid input. Please enter an integer.")
0 commit comments