11#!/usr/bin/python3
2+ from inputdtr import *
23"Copyright© 2023 LinuxUsersLinuxMint"
34"Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
45"Python Calcutator All Rights Reserved under the GPL(General Public License)."
56"Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
67"A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
78
8- command = input ('calc> ' )
9- about = "Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
109if command == "calc" :
11- print ("calc> Girebileceğiniz işlemler: " )
12- print ("top\n cık\n \carp\n bol\n yuzde\n about" )
13- sayi1 = input ('calc> 1.sayiyi giriniz: ' )
14- sayi2 = input ('calc> 2.sayiyi giriniz: ' )
15- islem = input ('calc> Gerçekleştirmek istediğiniz işlemi giriniz: ' )
16- top = float (sayi1 )+ float (sayi2 )
17- cık = float (sayi1 )- float (sayi2 )
18- carp = float (sayi1 )* float (sayi2 )
19- bol = float (sayi1 )/ float (sayi2 )
20- yuzde = float (sayi1 )% float (sayi2 )
21- if islem == "top" :
22- print ("{0} + {1} = {2}" . format (sayi1 ,sayi2 ,top ))
23- elif islem == "cık" :
10+ print ("calc> Girebileceğiniz işlemler: " )
11+ print ("top\n cık\n \carp\n bol\n yuzde\n about" )
12+ sayi1 , sayi2 , islem
13+ if islem == "top" :
14+ print ("{0} + {1} = {2}" . format (sayi1 ,sayi2 ,top ))
15+ elif islem == "cık" :
2416 print ("{0} - {1} = {2}" . format (sayi1 ,sayi2 ,cık ))
25- elif islem == "carp" :
17+ elif islem == "carp" :
2618 print ("{0} * {1} = {2}" . format (sayi1 ,sayi2 ,carp ))
27- elif islem == "bol" :
19+ elif islem == "bol" :
2820 print ("{0} / {1} = {2}" . format (sayi1 ,sayi2 ,bol ))
29- elif islem == "yuzde" :
21+ elif islem == "yuzde" :
3022 print ("{0} % {1} = {2}" . format (sayi1 ,sayi2 ,yuzde ))
31- else :
23+ else :
3224 print ("Geçersiz İşlem" )
33- if command == "about" :
34- print (about )
35- elif command == "exit" :
36- exit ()
37- elif command == "help" :
38- print ("Python calc Help" )
39- print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
40- elif command == "git-address" :
41- print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
42- elif command == "web-site" :
43- print ("linuxuserslinuxmint.github.io" )
44- elif command == "ver" :
45- print ("Sürüm: 0.1.5.5 (Son Güncellenme Tarihi 6 Eylül , 2023 , 22:22 )" )
46- elif command == "licence" :
47- print ("This Software is protected under the GPL2 license" )
48- else :
49- print ("Geçersiz Komut" )
25+ if command == "about" :
26+ print (about )
27+ elif command == "exit" :
28+ exit ()
29+ elif command == "help" :
30+ print ("Python calc Help" )
31+ print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
32+ elif command == "git-address" :
33+ print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
34+ elif command == "web-site" :
35+ print ("linuxuserslinuxmint.github.io" )
36+ elif command == "ver" :
37+ print ("Sürüm: 0.1.7 (Son Güncellenme Tarihi 8 Eylül , 2023 , 18:08 )" )
38+ elif command == "licence" :
39+ print ("This Software is protected under the GPL2 license" )
40+ else :
41+ print ("Geçersiz Komut" )
0 commit comments