11#!/usr/bin/python3
2- "Copyright© 2023 LinuxUsersLinuxMint"
3- "Python Calcutator Tüm Hakları GPL(Genel Kamu Lisansı) altında korunmaktadır."
4- "Python Calcutator All Rights Reserved under the GPL(General Public License)."
5- "Bu Yazılımın Bir Kopyası GİTHUB da yayınlanmaktadır Görüntülemek için: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
6- "A Copy of This Software is published on GITHUB To view: https://github.com/LinuxUsersLinuxMint/LinuxUsersLinuxMint"
7-
8- command = input ('calc> ' )
9- about = "Python Calcutator CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
10-
2+ import os
3+ from colorama import Fore , init
4+ init (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
10+ print ("******************************************************" )
11+ print ("*** Python-Calcutator 0.2.7 Programına Hoşgeldiniz ***" )
12+ print ("""*** Seçenekler: ***
13+ *** ***
14+ *** 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 ***
23+ *** 8. Thank ***
24+ ******************************************************""" )
25+ command = str (input (Fore .LIGHTBLUE_EX + 'calc> ' ))
26+ os .system ("clear" )
27+ about = "Python Hesap Makinesi CLI(Command Line Interface / Komut Satırı Arayüzü) LICENCE=GPL2"
28+ secilen_islem = str (Fore .LIGHTBLUE_EX + "None" )
1129if command == "calc" :
12- print ("calc> Transactions You Can Enter: " )
13- print ("collect\n Extraction\n \Impact\n Divide\n Percentage\n about" )
14- number1 = input ('{0} Enter The 1st number: ' . format (command ))
15- number2 = input ('{0} Enter The 2st number: ' . format (command ))
16- process = input ('{0} Enter the Transaction You Want to Perform: ' . format (command ))
17- addition = float (number1 )+ float (number2 )
18- subraction = float (number1 )- float (number2 )
19- multiplication = float (number1 )* float (number2 )
20- division = float (number1 )/ float (number2 )
21- Percentage = float (number1 )% float (number2 )
22- if process == "collect" :
23- print ("{0} + {1} = {2}" . format (number1 ,number2 ,addition ))
24- elif process == "Extraction" :
25- print ("{0} - {1} = {2}" . format (number1 ,number2 ,subraction ))
26- elif process == "Impact" :
27- print ("{0} * {1} = {2}" . format (number1 ,number2 ,multiplication ))
28- elif process == "Divide" :
29- print ("{0} / {1} = {2}" . format (number1 ,number2 ,division ))
30- elif process == "Percentage" :
31- print ("{0} % {1} = {2}" . format (number1 ,number2 ,Percentage ))
32- else :
33- print ("Invalid Proccess!" )
34- if command == "about" :
35- print (about )
36- elif command == "exit" :
37- exit ()
38- elif command == "help" :
39- print ("Python calc Help" )
40- print ("\n Command: calc , about , help , exit , git-address , web-site , ver , licence" )
41- elif command == "git-address" :
42- print ("Github Link: https://github.com/LinuxUsersLinuxMint" )
43- elif command == "web-site" :
44- print ("linuxuserslinuxmint.github.io" )
45- elif command == "ver" :
46- print ("Version: 0.2 (Last Updated September 17 , 2023 , 14:43)" )
47- elif command == "licence" :
48- print ("This Software is protected under the GPL2 license" )
30+ print ("""*** Girebileceğiniz işlemler: ***
31+ Seçilen İşlem={0}""" . format (secilen_islem ))
32+ print ("""
33+ 1. Addition
34+ 2. Subraction
35+ 3. Multiplication
36+ 4. Division
37+ 5. Percentage""" )
38+ process = str (input ('calc> Seçmek İstediğiniz İşlemin Numarasını Giriniz: ' ))
39+ secilen_islem = process
40+ os .system ("clear" )
41+ print (Fore .LIGHTBLUE_EX + """calc> Seçilen İşlem:
42+ Seçilen İşlem={0}""" . format (secilen_islem ))
43+ number1 = float (input ('calc> Enter The 1st Number: ' ))
44+ number2 = float (input ('calc> Enter The 2st Number: ' ))
45+ os .system ("clear" )
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 ))
4956else :
50- print ("Invalid Command!" )
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 ("Thank You for Using Python-Calcutator." )
75+ else :
76+ print ("Invalid Command!" )
0 commit comments