Skip to content

Commit 13588c2

Browse files
Update Basic_Maths.
1 parent aaa3e09 commit 13588c2

File tree

3 files changed

+15
-15
lines changed

3 files changed

+15
-15
lines changed

Basic_Maths/Basic_Maths.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ def SqaureRoot(x,ResultDialog):
8585
NOTE3: Along with the "nod" and "ntd" variables, developers can use the "InputN1N2()" function in the "all_math_operations()" function and add the 1st issue and 2nd issue dialogs through these variables.
8686
SUGGESTION: If your wishes or needs are different, it is recommended that you change it according to your needs before using the "all_math_operations()" function. """
8787

88-
def all_math_operations(optDialog,first_opt_dialog,second_opt_dialog,third_opt_dialog,fourth_opt_dialog,fifth_opt_dialog,sixth_opt_dialog,seventh_opt_dialog,eighth_opt_dialog,ninth_opt_dialog,SelectOptDialog,nod,ntd,resdialog,divisionzerocheckdialog,errdg):
88+
def all_math_operations(optDialog,first_opt_dialog,second_opt_dialog,third_opt_dialog,fourth_opt_dialog,fifth_opt_dialog,sixth_opt_dialog,seventh_opt_dialog,eighth_opt_dialog,ninth_opt_dialog,SelectOptDialog,nod,ntd,resdialog,divisionzerocheckdialog,errdg,addition_options_one,addition_options_two,addition_options_three,addition_options_four,addition_options_five,extraction_options_one,extraction_options_two,extraction_options_three,extraction_options_four,extraction_options_five,multiplication_options_one,multiplication_options_two,multiplication_options_three,multiplication_options_four,multiplication_options_five,division_options_one,division_options_two,division_options_three,division_options_four,division_options_five,percentage_options_one,percentage_options_two,percentage_options_three,percentage_options_four,percentage_options_five,fulldivision_options_one,fulldivision_options_two,fulldivision_options_three,fulldivision_options_four,fulldivision_options_five,takingexponents_options_one,takingexponents_options_two,takingexponents_options_three,takingexponents_options_four,takingexponents_options_five,takingroots_options_one,takingroots_options_two,takingroots_options_three,takingroots_options_four,takingroots_options_five,squareroot_options_one,squareroot_options_two,squareroot_options_three,squareroot_options_four,squareroot_options_five):
8989
print(optDialog)
9090
print(first_opt_dialog)
9191
print(second_opt_dialog)
@@ -98,23 +98,23 @@ def all_math_operations(optDialog,first_opt_dialog,second_opt_dialog,third_opt_d
9898
print(ninth_opt_dialog)
9999
select_func = str(input(SelectOptDialog))
100100
InputN1N2(nod,ntd)
101-
if select_func == "1" or select_func == "Addition" or select_func == "Toplama":
101+
if select_func == addition_options_one or select_func == addition_options_two or select_func == addition_options_three or select_func == addition_options_four or select_func == addition_options_five:
102102
Addition(number_one,number_two,resdialog)
103-
elif select_func == "2" or select_func == "Extraction" or select_func == "Çıkarma":
103+
elif select_func == extraction_options_one or select_func == extraction_options_two or select_func == extraction_options_three or select_func == extraction_options_four or select_func == extraction_options_five:
104104
Extraction(number_one,number_two,resdialog)
105-
elif select_func == "3" or select_func == "Multiplication" or select_func == "Çarpma":
105+
elif select_func == multiplication_options_one or select_func == multiplication_options_two or select_func == multiplication_options_three or select_func == multiplication_options_four or select_func == multiplication_options_five:
106106
Multiplication(number_one,number_two,resdialog)
107-
elif select_func == "4" or select_func == "Division" or select_func == "Bölme":
107+
elif select_func == division_options_one or select_func == division_options_two or select_func == division_options_three or select_func == division_options_four or select_func == division_options_five:
108108
Division(number_one,number_two,resdialog,divisionzerocheckdialog)
109-
elif select_func == "5" or select_func == "Percentage" or select_func == "Yüzdelik":
109+
elif select_func == percentage_options_one or select_func == percentage_options_two or select_func == percentage_options_three or select_func == percentage_options_four or select_func == percentage_options_five:
110110
Percentage(number_one,number_two,resdialog)
111-
elif select_func == "6" or select_func == "FullDivision" or select_func == "Tam bölüm":
111+
elif select_func == fulldivision_options_one or select_func == fulldivision_options_two or select_func == fulldivision_options_three or select_func == fulldivision_options_four or select_func == fulldivision_options_five:
112112
FullDivision(number_one,number_two,resdialog)
113-
elif select_func == "7" or select_func == "TakingExponents" or select_func == "Üslü sayı alma":
113+
elif select_func == takingexponents_options_one or select_func == takingexponents_options_two or select_func == takingexponents_options_three or select_func == takingexponents_options_four or select_func == takingexponents_options_five:
114114
TakingExponents(number_one,number_two,resdialog)
115-
elif select_func == "8" or select_func == "TakingRoots" or select_func == "Kök Alma":
115+
elif select_func == takingroots_options_one or select_func == takingroots_options_two or select_func == takingroots_options_three or select_func == takingroots_options_four or select_func == takingroots_options_five:
116116
TakingRoots(number_one,number_two,resdialog)
117-
elif select_func == "9" or select_func == "SquareRoot" or select_func == "Kare kök":
118-
SqaureRoot(number_one,resdialog)
117+
elif select_func == squareroot_options_one or select_func == squareroot_options_two or select_func == squareroot_options_three or select_func == squareroot_options_four or select_func == squareroot_options_five:
118+
SqaureRoot(number_one,resdialog)
119119
else:
120120
error_msg(errdg)

Basic_Maths/lib_ver_info.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
PYTHON_LIB_LICENCE="GPL2"
1010
PYTHON_LIB_IMPLEMENTED_CONTRACTS="LinuxUsersLinuxMint Privacy and Security Agreement , LinuxUsersLinuxMint Web (Site) Agreement"
1111
PYTHON_LIB_IMPLEMENTED_CONTRACTS_WEB_SITE="https://linuxuserslinuxmint.github.io/Contracts/privacyandsecutryagreement/en/privacyandsecutryagreement.html , https://linuxuserslinuxmint.github.io/Contracts/linuxuserslinuxmintwebsiteagreement/en/linuxuserslinuxmintwebsiteagreement.html"
12-
PYTHON_LIB_VER="4.2"
12+
PYTHON_LIB_VER="4.3"
1313
PYTHON_LIB_SUPPORT_PLATFORM="Windows/Linux/macOS/otherOS"
1414
PYTHON_LIB_RELEASE_DATE="9/30/2023, Time: XX:XX"
15-
PYTHON_LIB_LAST_UPDATE_DATE="6/9/2024, Time: 18:21 / 6:21 PM"
15+
PYTHON_LIB_LAST_UPDATE_DATE="6/11/2024, Time: 18:35 / 6:35 PM"
1616
PYTHON_LIB_AUTHOR="LinuxUsersLinuxMint"
1717
PYTHON_LIB_AUTHOR_WEB_SITE="https://linuxuserslinuxmint.github.io"

basic_maths_calc.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
from Basic_Maths.Basic_Maths import *
88

99
LibAbout()
10-
all_math_operations("Select Operations: ","1. Addition","2. Extraction","3. Multiplication","4. Division","5. Percentage","6. FullDivision","7. TakingExponents","8. TakingRoots","9. SquareRoot","Select a transaction?: ","Enter the 1st number: ","Enter the 2nd number: ","Result:","Numbers cannot be zero in division!","Invalid Process!")
11-
error_msg("error msg")
10+
all_math_operations("Select Operations: ","1. Addition","2. Extraction","3. Multiplication","4. Division","5. Percentage","6. FullDivision","7. TakingExponents","8. TakingRoots","9. SquareRoot","Select a transaction?: ","Enter the 1st number: ","Enter the 2nd number: ","Result:","Numbers cannot be zero in division!","Invalid Process!","1","add","addition","Addition","Toplama","2","ext","extraction","Extraction","Çıkarma","3","mul","multiplication","Multiplication","Çarpma","4","div","division","Division","Bölme","5","per","percentage","Percentage","Yüzdelik hesaplama","6","fulldiv","fulldivision","FullDivision","Tam bölüm","7","takingexp","takingexponents","TakingExponents","Üslü sayı alma","8","takingrt","takingroots","TakingRoots","Kök Alma","9","sqrt","squareroot","SquareRoot","Karekök")
11+
error_msg("error msg [TEST_FUNCTION]")

0 commit comments

Comments
 (0)