Update nth_ugly_number.py

Minor bugs fixed
This commit is contained in:
MrSuperfluous 2023-10-11 00:40:36 +05:30 committed by GitHub
parent d24c7432f7
commit 0edf71117d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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):