22import os
33from colorama import Fore , init
44init (autoreset = True )
5- " Copyright© 2023 LinuxUsersLinuxMint"
6- " Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
7- " Python Calcutator All Rights Reserved under the GPL(General Public License)."
8- " Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
9- " A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
5+ # Copyright© 2023 LinuxUsersLinuxMint
6+ # Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır.
7+ # Python Calcutator All Rights Reserved under the GPL(General Public License).
8+ # Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
9+ # A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint
1010print ("******************************************************" )
11- print ("*** Python-Calcutator 0.2.5 Programına Hoşgeldiniz ***" )
11+ print ("*** Python-Calcutator 0.2.7 Programına Hoşgeldiniz ***" )
1212print ("""*** Seçenekler: ***
13-
13+ *** ***
1414*** Seçmek istediğiniz Komutu Giriniz... ***
15-
16- 1. calc
17- 2. about
18- 3. exit
19- 4. help
20- 5. git-address
21- 6. ver
22- 7. licence""" )
15+ *** ***
16+ *** 1. calc ***
17+ *** 2. about ***
18+ *** 3. exit ***
19+ *** 4. help ***
20+ *** 5. git-address ***
21+ *** 6. ver ***
22+ *** 7. licence ***
23+ *** 8. Thank ***
24+ ******************************************************""" )
2325command = str (input (Fore .LIGHTBLUE_EX + 'calc> ' ))
2426os .system ("clear" )
2527about = "Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
2628secilen_islem = str (Fore .LIGHTBLUE_EX + "None" )
2729if command == "calc" :
28- print ("""calc> Girebileceğiniz işlemler:
30+ print ("""*** Girebileceğiniz işlemler: ***
2931 Seçilen İşlem={0}""" . format (secilen_islem ))
3032 print ("""
31331. Toplama
32342. Çıkarma
33353. Çarpma
34364. Bölme
35375. Yüzde""" )
36- islem = input ('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: ' )
37- os .system ("clear" )
38-
38+ islem = str (input ('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: ' ))
3939 secilen_islem = islem
40- print ("""calc> Seçilen İşlem:
40+ os .system ("clear" )
41+ print (Fore .LIGHTBLUE_EX + """calc> Seçilen İşlem:
4142 Seçilen İşlem={0}""" . format (secilen_islem ))
42- sayi1 = input ('calc> 1. sayiyi giriniz: ' )
43- sayi2 = input ('calc> 2. sayiyi giriniz: ' )
43+ sayi1 = float ( input ('calc> 1. sayiyi giriniz: ' ) )
44+ sayi2 = float ( input ('calc> 2. sayiyi giriniz: ' ) )
4445 os .system ("clear" )
45- top = float (sayi1 )+ float (sayi2 )
46- cık = float (sayi1 )- float (sayi2 )
47- carp = float (sayi1 )* float (sayi2 )
48- bol = float (sayi1 )/ float (sayi2 )
49- yuzde = float (sayi1 )% float (sayi2 )
50- if islem == "1" :
51- print ("{0} + {1} = {2}" . format (sayi1 ,sayi2 ,top ))
52- elif islem == "2" :
53- print ("{0} - {1} = {2}" . format (sayi1 ,sayi2 ,cık ))
54- elif islem == "3" :
55- print ("{0} * {1} = {2}" . format (sayi1 ,sayi2 ,carp ))
56- elif islem == "4" :
57- print ("{0} / {1} = {2}" . format (sayi1 ,sayi2 ,bol ))
58- elif islem == "5" :
59- print ("{0} % {1} = {2}" . format (sayi1 ,sayi2 ,yuzde ))
60- else :
61- print ("Geçersiz İşlem" )
62- if command == "about" :
63- print (about )
64- elif command == "exit" :
65- exit ()
66- elif command == "help" :
67- print ("Python calc Help" )
68- print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
69- elif command == "git-address" :
70- print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
71- elif command == "web-site" :
72- print ("linuxuserslinuxmint.github.io" )
73- elif command == "ver" :
74- print ("Sürüm: 0.2.5 (Son Güncellenme Tarihi 1 Ekim , 2023 , 16:46)" )
75- elif command == "licence" :
76- print ("This Software is protected under the GPL2 license" )
46+ if islem == "1" :
47+ print ("{0} + {1} = {2}" . format (sayi1 ,sayi2 ,sayi1 + sayi2 ))
48+ elif islem == "2" :
49+ print ("{0} - {1} = {2}" . format (sayi1 ,sayi2 ,sayi1 - sayi2 ))
50+ elif islem == "3" :
51+ print ("{0} * {1} = {2}" . format (sayi1 ,sayi2 ,sayi1 * sayi2 ))
52+ elif islem == "4" :
53+ print ("{0} / {1} = {2}" . format (sayi1 ,sayi2 ,sayi1 / sayi2 ))
54+ elif islem == "5" :
55+ print ("{0} % {1} = {2}" . format (sayi1 ,sayi2 ,sayi1 % sayi2 ))
7756else :
78- print ("Geçersiz Komut" )
57+ print ("Geçersiz İşlem!" )
58+ if command == "about" :
59+ print (about )
60+ elif command == "exit" :
61+ exit ()
62+ elif command == "help" :
63+ print ("Python calc Help" )
64+ print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence , Thank" )
65+ elif command == "git-address" :
66+ print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
67+ elif command == "web-site" :
68+ print ("linuxuserslinuxmint.github.io" )
69+ elif command == "ver" :
70+ print ("Sürüm: 0.2.7 (Son Güncellenme Tarihi 6 Ekim , 2023 , 18:03)" )
71+ elif command == "licence" :
72+ print ("This Software is protected under the GPL2 license" )
73+ elif command == "Thank" :
74+ print ("Python-Calcutator'u Kullandığınız için Teşekkür ederim. " )
75+ # Thank You for Using Python-Calcutator.
76+ else :
77+ print ("Geçersiz Komut!" )
0 commit comments