Update nth_ugly_number.py

minor bugs fixed
This commit is contained in:
MrSuperfluous 2023-10-11 00:42:36 +05:30 committed by GitHub
parent 0edf71117d
commit 4765df7272
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 ************") print("\n********* END ************")
break break
else: else:
ugly_number = nth_Ugly_Number(n) ugly_number = nth_ugly_number(n)
print(f"The {n}th Ugly Number is: {ugly_number}") print(f"The {n}th Ugly Number is: {ugly_number}")
print("Try another index to find a Ugly Number: ", end="") print("Try another index to find a Ugly Number: ", end="")
except (NameError, ValueError): except (NameError, ValueError):