Skip to content

Commit 6ad7e6d

Browse files
Update Prompt for clarity
1 parent 6c04620 commit 6ad7e6d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dynamic_programming/catalan_numbers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,11 @@ def catalan_numbers(upper_limit: int) -> "list[int]":
5959

6060
if __name__ == "__main__":
6161
print("\n********* Catalan Numbers Using Dynamic Programming ************\n")
62-
print("\n*** Enter -1 at any time to quit ***")
62+
print("\n*** Enter negative int at any time to quit ***")
6363
print("\nEnter the upper limit (≥ 0) for the Catalan number sequence: ", end="")
6464
try:
6565
while True:
66-
N = int(input().strip())
66+
N = int(input("Enter: ")).strip()
6767
if N < 0:
6868
print("\n********* Goodbye!! ************")
6969
break

0 commit comments

Comments
 (0)