55Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
66A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"""
77
8+ global result
9+
810def 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 ))
1415def 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 ))
2020def 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 ))
2625def 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 ))
3230def 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 ))
3835def 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 ))
4440def 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 ))
5045def 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 ))
5650def 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