Skip to content

Commit 2921ef9

Browse files
Some regulations.
1 parent 10caf84 commit 2921ef9

File tree

1 file changed

+11
-18
lines changed

1 file changed

+11
-18
lines changed

Basic_Maths.py

Lines changed: 11 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,56 +5,49 @@
55
Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
66
A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"""
77

8+
global result
9+
810
def addition(x,y,ResultDialog):
911
x=x
1012
y=y
11-
global result
1213
result=x+y
13-
print("{3} {0} + {1} = {2}". format(x,y,result,ResultDialog))
14+
print("{0} {1} + {2} = {3}". format(ResultDialog,x,y,result))
1415
def Extraction(x,y,ResultDialog):
1516
x=x
1617
y=y
17-
global result
1818
result=x-y
19-
print("{3} {0} - {1} = {2}". format(x,y,result,ResultDialog))
19+
print("{0} {1} - {2} = {3}". format(ResultDialog,x,y,result))
2020
def Multiplication(x,y,ResultDialog):
2121
x=x
2222
y=y
23-
global result
2423
result=x*y
25-
print("{3} {0} * {1} = {2}". format(x,y,result,ResultDialog))
24+
print("{0} {1} * {2} = {3}". format(ResultDialog,x,y,result))
2625
def Division(x,y,ResultDialog):
2726
x=x
2827
y=y
29-
global result
3028
result=x/y
31-
print("{3} {0} / {1} = {2}". format(x,y,result,ResultDialog))
29+
print("{0} {1} / {2} = {3}". format(ResultDialog,x,y,result))
3230
def Percentage(x,y,ResultDialog):
3331
x=x
3432
y=y
35-
global result
3633
result=x%y
37-
print("{3} {0} % {1} = {2}". format(x,y,result,ResultDialog))
34+
print("{0} {1} % {2} = {3}". format(ResultDialog,x,y,result))
3835
def FullDivision(x,y,ResultDialog):
3936
x=x
4037
y=y
41-
global result
4238
result=x//y
43-
print("{3} {0} // {1} = {2}". format(x,y,result,ResultDialog))
39+
print("{0} {1} // {2} = {3}". format(ResultDialog,x,y,result))
4440
def TakingExponents(x,y,ResultDialog):
4541
x=x
4642
y=y
47-
global result
4843
result=x ** y
49-
print("{3} {0} ** {1} = {2}". format(x,y,result,ResultDialog))
44+
print("{0} {1} ** {2} = {3}". format(ResultDialog,x,y,result))
5045
def TakingRoots(x,y,ResultDialog):
5146
x=x
5247
y=y
53-
global result
5448
result=x ** (1/y)
55-
print("{3} {0} ** (1/{1}) = {2}". format(x,y,result,ResultDialog))
49+
print("{0} {1} / (1/y) = {2}". format(ResultDialog,x,result))
5650
def SqaureRoot(x,ResultDialog):
5751
x=x
58-
global result
5952
result=x ** (1/2)
60-
print("{3} {0} ** (1/2) = {1}". format(x,result,ResultDialog))
53+
print("{0} {1} ** (1/2) = {2}". format(ResultDialog,x,result))

0 commit comments

Comments
 (0)