Skip to content

Commit

Permalink
Fix some minor issues
Browse files Browse the repository at this point in the history
  • Loading branch information
iwannet authored Jun 1, 2023
1 parent 5eaf1c0 commit d6086ce
Showing 1 changed file with 17 additions and 12 deletions.
29 changes: 17 additions & 12 deletions Algebra_Py/Algebra V3.5.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,17 @@
def choose():
menu3 = "\n1: Run Again\n2: Exit \n3: Credits\n\n"
answer3 = input(menu3)
if answer3 == "1" or answer3 == "2":
if answer3 == "1" or answer3 == "2" or answer3 == "3":
if answer3 == "1":
run()
if answer3 == "2":
elif answer3 == "2":
exit()
else:
print("\nChose a correct option")
run()
elif answer3 == "3":
credits()
choose()
else:
print("\nChose a correct option")
run()
def quadratic_solver():
a = float(input("Enter the value of a: "))
b = float(input("Enter the value of b: "))
Expand Down Expand Up @@ -94,28 +97,30 @@ def display_formulas():


def credits():
print("\nCredits:")
print("Made by iwannet")
print("Made by iwannet --> www.iwannet.cc")
try:
print("\033[34m" + "\033[1m" + "Credits:\nMade by iwannet -> www.iwannet.cc \033[0m")
except:
print("Credits:\nMade by iwannet -> www.iwannet.cc")



def run():
if answer1 == "1" or answer1 == "2" or answer1 == "3" or answer1 == "4":
if answer1 == "1":
quadratic_solver()
input("\nPress ENTER to exit")
input("\nPress ENTER to continue")
choose()
if answer1 == "2":
alpha_beta_solver()
input("\nPress ENTER to exit")
input("\nPress ENTER to continue")
choose()
if answer1 == "3":
display_formulas()
input("\nPress ENTER to exit")
input("\nPress ENTER to continue")
choose()
if answer1 == "4":
credits()
input("\nPress ENTER to exit")
input("\nPress ENTER to continue")
choose()

else:
Expand Down

0 comments on commit d6086ce

Please sign in to comment.