diff --git a/dynamic_programming/nth_ugly_number.py b/dynamic_programming/nth_ugly_number.py index bb876ea8f..6d62aba89 100644 --- a/dynamic_programming/nth_ugly_number.py +++ b/dynamic_programming/nth_ugly_number.py @@ -82,7 +82,7 @@ if __name__ == "__main__": print("\n********* END ************") break else: - ugly_number = nthUglyNumber(n) + ugly_number = nth_Ugly_Number(n) print(f"The {n}th Ugly Number is: {ugly_number}") print("Try another index to find a Ugly Number: ", end="") except (NameError, ValueError):